We no longer support Fx <24

This commit is contained in:
Simon Kornblith 2015-03-11 12:05:13 -04:00
parent 608da632f3
commit 6a05e5c04b

View file

@ -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);