Author: hqm
Date: 2007-06-20 10:59:36 -0700 (Wed, 20 Jun 2007)
New Revision: 5479
Modified:
openlaszlo/branches/legals/WEB-INF/lps/lfc/kernel/dhtml/LzLibrary.js
Log:
Change 20070619-hqm-6 by [EMAIL PROTECTED] on 2007-06-19 23:28:44 EDT
in /cygdrive/c/users/hqm/openlaszlo/legals4
for http://svn.openlaszlo.org/openlaszlo/branches/legals
Summary: add call to instantiate LzLibraryCleanup in DHTML
New Features:
Bugs Fixed: LPP-NaN
Technical Reviewer: max (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
do the same thing that swf runtime does
Tests:
Modified: openlaszlo/branches/legals/WEB-INF/lps/lfc/kernel/dhtml/LzLibrary.js
===================================================================
--- openlaszlo/branches/legals/WEB-INF/lps/lfc/kernel/dhtml/LzLibrary.js
2007-06-20 17:22:56 UTC (rev 5478)
+++ openlaszlo/branches/legals/WEB-INF/lps/lfc/kernel/dhtml/LzLibrary.js
2007-06-20 17:59:36 UTC (rev 5479)
@@ -69,6 +69,19 @@
* @access private
*/
static function __LZsnippetLoaded (url){
+ // find the lib with this url
+ var libname = null;
+ var libs = LzLibrary.libraries;
+ for (var l in libs ) {
+ if (libs[l].href == url) {
+ libname = libs[l].name;
+ break;
+ }
+ }
+ if (libname == null) {
+ Debug.error("could not find library with href", url);
+ }
+ LzInstantiateView({attrs: {libname: libname}, name:
"__libraryloadercomplete"}, 1);
// Run the queue to instantiate all pending LzInstantiateView calls.
canvas.initDone();
}
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins