[tbb-commits] [tor-browser/esr24] Bug 1005552 - Fuss around with marquee some more. r=bz, a=abillings

mikeperry at torproject.org mikeperry at torproject.org
Fri Aug 29 05:26:41 UTC 2014


commit f726940eaa87e81d588f8dda08a57823b1e993bb
Author: Bobby Holley <bobbyholley at gmail.com>
Date:   Wed May 28 12:43:07 2014 -0700

    Bug 1005552 - Fuss around with marquee some more. r=bz, a=abillings
---
 layout/style/xbl-marquee/xbl-marquee.xml |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/layout/style/xbl-marquee/xbl-marquee.xml b/layout/style/xbl-marquee/xbl-marquee.xml
index 2a883ac..fdd97af 100644
--- a/layout/style/xbl-marquee/xbl-marquee.xml
+++ b/layout/style/xbl-marquee/xbl-marquee.xml
@@ -264,7 +264,7 @@
                   //
                   // NB: Make sure to wrap the constructor in parentheses to
                   // deal with the weird precedence of |new| in JS.
-                  this["_on" + aName] = new (XPCNativeWrapper.unwrap(window).Function)("event", aValue);
+                  this["_on" + aName] = function(e) { window.setTimeout((new (XPCNativeWrapper.unwrap(window).Function)("event", aValue)).bind(this, e), 0); };
                 }
                 catch(e) {
                   return false;





More information about the tbb-commits mailing list