-
29 Sep 2010 1:49 AM #1
[OPEN-1296] Bug in swfobject::addLoadEvent
[OPEN-1296] Bug in swfobject::addLoadEvent
Hello,
i think i've found a bug in the swfobject::addLoadEvent function.
I think this should be:Code:function addLoadEvent(fn) { if (typeof win.addEventListener != UNDEF) { win.addEventListener("load", fn, false); } else if (typeof doc.addEventListener != UNDEF) { doc.addEventListener("load", fn, false); } else if (typeof win.attachEvent != UNDEF) { addListener(win, "onload", fn); } else if (typeof win.onload == "function") { var fnOld = win.onload; win.onload = function() { fnOld(); fn(); }; } else { win.onload = fn; } }
RegardsCode:else if (typeof win.attachEvent != UNDEF) { attachEvent("onload", fn); }
Volker
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
Flash not installed and a Ext.FlashComponent override to get at swfObject callback
By hjones in forum Ext 3.x: User Extensions and PluginsReplies: 0Last Post: 30 Sep 2010, 6:19 AM -
swfobject weird error
By zaza1851983 in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 3 May 2010, 6:16 AM -
SWFObject 2.2 and GXT
By diegolovison in forum Community DiscussionReplies: 4Last Post: 26 Mar 2010, 3:43 AM -
[FIXED][3.0.0] Fix: Ext.FlashComponent pass parameters to swfobject
By Ronaldo in forum Ext 3.x: BugsReplies: 3Last Post: 30 Jul 2009, 12:19 AM -
Ext 2.0 and SWFObject/Flash issue
By adkent in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 7 Jan 2008, 5:45 AM


Reply With Quote