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 = [];
|
||||
|
||||
return function setTimeout(func, ms) {
|
||||
var useMethodjit = Components.utils.methodjit,
|
||||
timer = Components.classes["@mozilla.org/timer;1"].
|
||||
var timer = Components.classes["@mozilla.org/timer;1"].
|
||||
createInstance(Components.interfaces.nsITimer);
|
||||
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
|
||||
_runningTimers.splice(_runningTimers.indexOf(timer), 1);
|
||||
|
|
Loading…
Reference in a new issue