Author: max
Date: 2007-11-14 11:08:10 -0800 (Wed, 14 Nov 2007)
New Revision: 7261
Modified:
openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
openlaszlo/trunk/WEB-INF/lps/lfc/views/LaszloView.lzs
Log:
Change 20071114-maxcarlson-Q by [EMAIL PROTECTED] on 2007-11-14 10:00:18 PST
in /Users/maxcarlson/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Allow resources to be reloaded after unload()
New Features:
Bugs Fixed: LPP-4261 - Unable to load and unload resources repeatedly - DHTML
Technical Reviewer: promanik
QA Reviewer: jcrowley
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details: LzSprite.js - clear out .reloaded when unload() is called.
LaszloView.lzs - clear out ._reloaded when unload() is called.
Tests: See LPP-4261
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js 2007-11-14
18:56:47 UTC (rev 7260)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js 2007-11-14
19:08:10 UTC (rev 7261)
@@ -1509,6 +1509,7 @@
}
LzSprite.prototype.unload = function () {
+ this.resource = null;
if (this.__ImgPool) {
this.__ImgPool.destroy();
this.__ImgPool = null;
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/views/LaszloView.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/views/LaszloView.lzs 2007-11-14
18:56:47 UTC (rev 7260)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/views/LaszloView.lzs 2007-11-14
19:08:10 UTC (rev 7261)
@@ -2288,6 +2288,7 @@
* Unloads media loaded with setSource or the source= attribute.
* */
function unload ( ){
+ this._resource = null;
//this function formerly lived on the LzMakeLoad transformer
this.sprite.unload();
}
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins