|
|
|
[
Permlink
| « Hide
]
Max Carlson - 31/Oct/07 03:38 PM
Upgrading to a p0
If you don't want/need to have a callback, the "callback" argument must be "false", instead of "null"!
A patch for this is quite easy: --- C:/Dokumente und Einstellungen/Admin/Lokale Einstellungen/Temp/LzBrowser-HEAD.2.as Thu Nov 01 13:22:36 2007 +++ e:/Entwicklung/OpenLaszlo/cygwin/home/Admin/src/svn/openlaszlo/trunk/WEB-INF/lps/lfc/services/platform/swf/LzBrowser.as Thu Nov 01 13:20:47 2007 @@ -85,7 +85,8 @@ return; } - if (typeof callback == 'function') { + var hasCallback = typeof(callback) == 'function'; + if (hasCallback) { this.__jscallback = callback; } else { this.__jscallback = null; @@ -97,7 +98,7 @@ //Debug.write('calling with args real', arguments); DojoExternalInterface.call.apply(this, args); - if (callback == false) { + if (!hasCallback) { this._dequeueJS(); } } Thanks for your response, Andre!
It turns out that my issue is that I was compiling to swf7 instead of swf8. In swf8, everything works fine. However, in IE I also get two Javascript errors (although it works): 1. On load of the app, I get the error "Object doesn't support this property or method." on line 735. I did a bit of debugging, and this error is actually being thrown on line 734, which is "$3.startExec()". In case it helps, $3 is defined as "var $3=dojo.flash.obj.get()". 2. On unload of the page, I get the error "Syntax error" on line 1. I'm not sure where this comes from, but I'm guessing that perhaps the idle loop which checks the browser URL is still running while other things are being unloaded? Something like that? Thanks! Concerning the first JavaScript-error: this sounds just like
Indeed, the workaround suggested in LPP 4695 (lzt=html) does get rid of the first one. Any thoughts on the second?
May you file a separate bug-report for the second issue (with a small reproducible testcase), so it's easier to track this bug. Thanks!
(wafflecone build r7137 - cranberry RC)
Fixed. |
||||||||||||||||||||||||||||||||||||||||||||||||||||