We no longer support Fx <24
This commit is contained in:
parent
608da632f3
commit
6a05e5c04b
1 changed files with 1 additions and 4 deletions
|
@ -66,12 +66,9 @@
|
||||||
var _runningTimers = [];
|
var _runningTimers = [];
|
||||||
|
|
||||||
return function setTimeout(func, ms) {
|
return function setTimeout(func, ms) {
|
||||||
var useMethodjit = Components.utils.methodjit,
|
var timer = Components.classes["@mozilla.org/timer;1"].
|
||||||
timer = Components.classes["@mozilla.org/timer;1"].
|
|
||||||
createInstance(Components.interfaces.nsITimer);
|
createInstance(Components.interfaces.nsITimer);
|
||||||
timer.initWithCallback({"notify":function() {
|
timer.initWithCallback({"notify":function() {
|
||||||
// XXX Remove when we drop support for Fx <24
|
|
||||||
if(useMethodjit !== undefined) Components.utils.methodjit = useMethodjit;
|
|
||||||
|
|
||||||
// Remove timer from array so it can be garbage collected
|
// Remove timer from array so it can be garbage collected
|
||||||
_runningTimers.splice(_runningTimers.indexOf(timer), 1);
|
_runningTimers.splice(_runningTimers.indexOf(timer), 1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue