Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#3 Strange issue

open
nobody
None
5
2010-08-31
2010-08-31
Justin Dearing
No

Sometimes, at this point in the code "this" is the Windwos and not the SWFAddress object. This prevents that from breaking things.

D:\swfAddress>svn diff src
Index: src/js/SWFAddress.js
===================================================================
--- src/js/SWFAddress.js (revision 880)
+++ src/js/SWFAddress.js (working copy)
@@ -102,6 +102,7 @@
_popup = [];
},
_dispatch = function(type) {
+ if (typeof (this.dispatchEvent) != 'function') { return; }
this.dispatchEvent(new SWFAddressEvent(type));
type = type.substr(0, 1).toUpperCase() + type.substr(1);
if(typeof this['on' + type] == FUNCTION)

D:\swfAddress>

Discussion