mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-24 13:53:43 +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;
|
return ret;
|
||||||
} else {
|
} else {
|
||||||
var evnt = document.createEvent('MouseEvents'),
|
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);
|
|
||||||
};
|
|
||||||
|
|
||||||
evnt.initMouseEvent(type, true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, element);
|
evnt.initMouseEvent(type, true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, element);
|
||||||
element.dispatchEvent(evnt);
|
return element.dispatchEvent(evnt);
|
||||||
return processDefault;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue