mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 11:37:38 +08:00
Fix browser triggering in scenario to always do native events.
- Also fixed angular.suffix for scenarios - refactored click() to browserTrigger() - Fixed Rakefile with CSS and jQuery
This commit is contained in:
@@ -189,25 +189,6 @@ function assertThrows(error, fn){
|
||||
log = noop;
|
||||
error = noop;
|
||||
|
||||
function click(element) {
|
||||
element = jqLite(element);
|
||||
var type = lowercase(element.attr('type'));
|
||||
var name = lowercase(nodeName(element));
|
||||
if (msie) {
|
||||
if (name == 'input') {
|
||||
if (type == 'radio' || type == 'checkbox') {
|
||||
element[0].checked = ! element[0].checked;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (name == 'option') {
|
||||
element.parent().val(element.val());
|
||||
JQLite.prototype.trigger.call(element.parent(), 'change');
|
||||
} else {
|
||||
JQLite.prototype.trigger.call(element, 'click');
|
||||
}
|
||||
}
|
||||
|
||||
function rethrow(e) {
|
||||
if(e) {
|
||||
throw e;
|
||||
|
||||
Reference in New Issue
Block a user