From 9c7d01c5ee50e72253d6195cee7a75fe5ba2b33c Mon Sep 17 00:00:00 2001 From: "gavin%gavinsharp.com" Date: Tue, 15 Nov 2005 00:08:01 +0000 Subject: [PATCH] Bug 239919 followup: address reviewer comments, patch by Martijn Wargers --- layout/style/xbl-marquee/xbl-marquee.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layout/style/xbl-marquee/xbl-marquee.xml b/layout/style/xbl-marquee/xbl-marquee.xml index b4b085656ef1..0ce24ef89270 100644 --- a/layout/style/xbl-marquee/xbl-marquee.xml +++ b/layout/style/xbl-marquee/xbl-marquee.xml @@ -427,7 +427,9 @@ break; case "truespeed": //needed to update this._scrollDelay - setTimeout(function(x){ x._set_scrollDelay(x.getAttribute('scrolldelay'), false); }, 0, this); + var myThis = this; + var lambda = function() {myThis._set_scrollDelay(myThis.getAttribute('scrolldelay'), false);} + window.setTimeout(lambda, 0); break; case "behavior": this._set_behavior(newValue, canGenerateError);