Author: pbr
Date: 2006-11-10 13:41:15 -0800 (Fri, 10 Nov 2006)
New Revision: 2481

Modified:
   openlaszlo/branches/legals/lps/components/base/basecomponent.lzx
   openlaszlo/branches/legals/lps/components/base/basetabslider.lzx
   openlaszlo/branches/legals/lps/components/base/basetree.lzx
Log:
Summary: Change this.classname to this.constructor.classname

New Features:

Bugs Fixed:

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

Documentation:
Converted this.classname to this.constructor.classname to fetch the name of the
class. The class name is used for display (basecomponent.lzx), or constructing n
ew instances using code similar to,
   new global[this.constructor.classname](...);

Release Notes:

Details:


Tests:

Files:
M      lps/components/base/basetree.lzx
M      lps/components/base/basecomponent.lzx
M      lps/components/base/basetabslider.lzx

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20061110-Philip-4.tar

Modified: openlaszlo/branches/legals/lps/components/base/basecomponent.lzx
===================================================================
--- openlaszlo/branches/legals/lps/components/base/basecomponent.lzx    
2006-11-10 21:14:09 UTC (rev 2480)
+++ openlaszlo/branches/legals/lps/components/base/basecomponent.lzx    
2006-11-10 21:41:15 UTC (rev 2481)
@@ -366,7 +366,7 @@
             if (this['id'] != null) idstring = "  id="+this.id;
             if (this['name'] != null) namestring = " named \""+this.name+"\"";
             if (this['text'] && this.text != "") textstring = "  
text="+this.text;
-            return (this['classname'] ? this.classname : "" ) + namestring + 
idstring + textstring;
+            return this.constructor.classname + namestring + idstring + 
textstring;
             ]]>
         </method>
 
@@ -374,7 +374,7 @@
 
 </library>
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc.  All Rights Reserved.              *
+* Copyright 2001-2006 Laszlo Systems, Inc.  All Rights Reserved.              *
 * Use is subject to license terms.                                            *
 * X_LZ_COPYRIGHT_END ****************************************************** -->
 <!-- @LZX_VERSION@                                                         -->

Modified: openlaszlo/branches/legals/lps/components/base/basetabslider.lzx
===================================================================
--- openlaszlo/branches/legals/lps/components/base/basetabslider.lzx    
2006-11-10 21:14:09 UTC (rev 2480)
+++ openlaszlo/branches/legals/lps/components/base/basetabslider.lzx    
2006-11-10 21:41:15 UTC (rev 2481)
@@ -148,7 +148,7 @@
         <handler name="onaddsubview" method="doAddSubview"/>
         <method name="doAddSubview" args="v" >
             if ( this.itemclassname == "" ){
-                this.itemclassname = v.classname;
+                this.itemclassname = v.constructor.classname;
             }
             if ( typeof(v.minheight) == "undefined" ) {
                 // no minheight was defined so assign the parent
@@ -238,7 +238,7 @@
    </class> <!-- END: basetabslider -->
 </library>
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc.  All Rights Reserved.              *
+* Copyright 2001-2006 Laszlo Systems, Inc.  All Rights Reserved.              *
 * Use is subject to license terms.                                            *
 * X_LZ_COPYRIGHT_END ****************************************************** -->
 <!-- @LZX_VERSION@                                                         -->

Modified: openlaszlo/branches/legals/lps/components/base/basetree.lzx
===================================================================
--- openlaszlo/branches/legals/lps/components/base/basetree.lzx 2006-11-10 
21:14:09 UTC (rev 2480)
+++ openlaszlo/branches/legals/lps/components/base/basetree.lzx 2006-11-10 
21:41:15 UTC (rev 2481)
@@ -316,7 +316,7 @@
               classes. -->
         <method name="getChildClass">
             if (this.isleaf) return null;
-            return this.classname;
+            return this.constructor.classname;
         </method>
 
         <!--- Check to see if this is the root of the tree.
@@ -639,7 +639,7 @@
 
 </library>
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc.  All Rights Reserved.              *
+* Copyright 2001-2006 Laszlo Systems, Inc.  All Rights Reserved.              *
 * Use is subject to license terms.                                            *
 * X_LZ_COPYRIGHT_END ****************************************************** -->
 <!-- @LZX_VERSION@                                                         -->


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to