mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-20 16:30:26 +00:00
Revert "fix(scenario): temporary fix for FF6"
This reverts commit aac68bf2ba.
This commit is contained in:
parent
13f92de624
commit
2eb49147d6
1 changed files with 2 additions and 12 deletions
|
|
@ -279,19 +279,9 @@ function browserTrigger(element, type) {
|
|||
}
|
||||
return ret;
|
||||
} else {
|
||||
var evnt = document.createEvent('MouseEvents'),
|
||||
processDefault = true,
|
||||
originalPreventDefault = evnt.preventDefault;
|
||||
|
||||
// vojta: temporary fix for https://bugzilla.mozilla.org/show_bug.cgi?id=684208
|
||||
evnt.preventDefault = function() {
|
||||
processDefault = false;
|
||||
return originalPreventDefault.apply(evnt, arguments);
|
||||
};
|
||||
|
||||
var evnt = document.createEvent('MouseEvents');
|
||||
evnt.initMouseEvent(type, true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, element);
|
||||
element.dispatchEvent(evnt);
|
||||
return processDefault;
|
||||
return element.dispatchEvent(evnt);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue