|
|
|
[
Permlink
| « Hide
]
Jason Stafford - 10/Jul/06 07:36 PM
I have a fix for this as soon as I get my contributor agreement approved.
For those of you who can't wait for the lawyers at my company:
Look in LzMakeLoad.as (openlaszlo/WEB-INF/lps/lfc/transformers). There are two calls to this.loader.unload. If you look at the source for unload (in LzLoader.as), you will see that it really ought to be passed a parameter. In these two cases I think that parameter should be this.loader.mc. You can fix this bug without recompiling the source. If in a script block you have a few lines like: LzMakeLoad.unload = function () { // do some stuff } You can simply overwrite that function and your code will be executed instead of the compiled in code. (Isn't JavaScript cool). I'm sorry to not be more plain spoken about the fix, but I don't want to cloud the copyright issue by showing the fix without a contributor agreement in place. I swear I'm really doing all I can to get that done - but while I'm at work I don't own my output, the company does. I've got to get their OK. -Jason This issue is also reproduceable in LPS 3.3.3
Following is the workaround based on Jason's hints (thanks!). Sanjaya ================================ <script> //***To workaround the hangging media loader after destroy view whose loading in progress, apply this script block in your app ***/ //----------------------------------------------------------------------------- // Unloads the media // // @keywords private //----------------------------------------------------------------------------- LzMakeLoad.unload = function () { this.loader.unload( this.loader.mc ); } //============================================================================= // @keywords private //============================================================================= LzMakeLoad.destroy = function (recur) { this.loader.unload( this.loader.mc ); super.destroy( recur ); } </script> Fix was checked in to wafflecone, so I'm marking it as fix-version wafflecone
r6259 | hqm | 2007-08-27 20:35:33 -0400 (Mon, 27 Aug 2007) | 30 lines
Changed paths: M /openlaszlo/branches/wafflecone/WEB-INF/lps/lfc/kernel/swf/LzMakeLoadSprite.as Change 20070827-hqm-4 by hqm@IBM-2E06404CB67 on 2007-08-27 20:32:51 EDT in /cygdrive/c/users/hqm/openlaszlo/wafflecone for http://svn.openlaszlo.org/openlaszlo/branches/wafflecone Summary: fix for media loader bug New Features: Bugs Fixed: Bug: Technical Reviewer: max (pending) QA Reviewer: jcrowley (pending) Doc Reviewer: (pending) Documentation: Release Notes: Details: see bug report Tests: test case in bug report Tested on Firefox 2.0.0.8 and IE7 on Windows using r6938 showed no hang with the line in question commented out. Bug verified.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||