[Laszlo-checkins] r12017 - in openlaszlo/trunk/WEB-INF/lps/lfc: compiler kernel/swf

bargull@openlaszlo.org bargull at openlaszlo.org
Mon Dec 8 17:00:38 PST 2008


Author: bargull
Date: 2008-12-08 17:00:35 -0800 (Mon, 08 Dec 2008)
New Revision: 12017

Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/compiler/LzMessage.lzs
   openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzRegExp.lzs
Log:
Change 20081208-bargull-JiA by bargull at dell--p4--2-53 on 2008-12-08 22:31:48
    in /home/Admin/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: hide custom slots added to String.prototype

New Features:

Bugs Fixed: LPP-7292

Technical Reviewer: ptw
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
Use "ASSetPropFlags" for swf8 (thanks for the info!) and "setPropertyIsEnumerable" for swf9.

    

Tests:



Modified: openlaszlo/trunk/WEB-INF/lps/lfc/compiler/LzMessage.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/compiler/LzMessage.lzs	2008-12-09 00:56:46 UTC (rev 12016)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/compiler/LzMessage.lzs	2008-12-09 01:00:35 UTC (rev 12017)
@@ -169,3 +169,12 @@
   return LzMessage.xmlEscape(this);
 };
 
+if ($as2) {
+// make unenumerable in AS2 style
+ASSetPropFlags(String.prototype, ["toHTML"], 1, 0);
+} else if ($as3) {
+// make unenumerable in AS3 style
+String.prototype.setPropertyIsEnumerable("toHTML", false);
+} else {
+// can't make unenumerable in dhtml
+}

Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzRegExp.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzRegExp.lzs	2008-12-09 00:56:46 UTC (rev 12016)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzRegExp.lzs	2008-12-09 01:00:35 UTC (rev 12017)
@@ -241,3 +241,6 @@
         return String.prototype.__split.apply(this, arguments);
     }
 }
+
+// make unenumerable
+ASSetPropFlags(String.prototype, ["__split", "search", "replace", "match"], 1, 0);



More information about the Laszlo-checkins mailing list