From 6a05e5c04ba785b54d8047b29c577460cce87508 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Wed, 11 Mar 2015 12:05:13 -0400 Subject: [PATCH] We no longer support Fx <24 --- resource/q.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/resource/q.js b/resource/q.js index de32ab3923..02b53c56a3 100644 --- a/resource/q.js +++ b/resource/q.js @@ -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);