#3 Strange issue

open
nobody
None
5
2010-08-31
2010-08-31
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


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks