diff options
| author | Igor Minar | 2011-09-21 14:11:15 +0200 |
|---|---|---|
| committer | Igor Minar | 2011-09-26 23:51:54 +0200 |
| commit | 2eb49147d69fe930714578dd7aa13f8d5e3a6d49 (patch) | |
| tree | ebe9bb4cddff07dbdc0ce669a8df2d4f83cbe6dc /src/scenario | |
| parent | 13f92de6246a0af8450fde84b209211a56397fda (diff) | |
| download | angular.js-2eb49147d69fe930714578dd7aa13f8d5e3a6d49.tar.bz2 | |
Revert "fix(scenario): temporary fix for FF6"
This reverts commit aac68bf2ba2dcdf0b22fa4f15ea49672cb06328d.
Diffstat (limited to 'src/scenario')
| -rw-r--r-- | src/scenario/Scenario.js | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/scenario/Scenario.js b/src/scenario/Scenario.js index 3914bdfc..420345f6 100644 --- a/src/scenario/Scenario.js +++ b/src/scenario/Scenario.js @@ -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); } } |
