Author: hqm
Date: 2008-03-16 09:13:39 -0700 (Sun, 16 Mar 2008)
New Revision: 8281
Modified:
openlaszlo/trunk/demos/lzpix/classes/photocollection.lzx
openlaszlo/trunk/demos/lzpixmobile/classes/photocollection.lzx
openlaszlo/trunk/lps/components/base/basegrid.lzx
openlaszlo/trunk/lps/components/base/basetabs.lzx
Log:
Change 20080316-hqm-Z by [EMAIL PROTECTED] on 2008-03-16 12:11:57 EDT
in /Users/hqm/openlaszlo/trunk3
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: change references to class names to be from lz namespace instead of
global
New Features:
Bugs Fixed:
Technical Reviewer: ptw
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
Tests:
Modified: openlaszlo/trunk/demos/lzpix/classes/photocollection.lzx
===================================================================
--- openlaszlo/trunk/demos/lzpix/classes/photocollection.lzx 2008-03-16
13:05:06 UTC (rev 8280)
+++ openlaszlo/trunk/demos/lzpix/classes/photocollection.lzx 2008-03-16
16:13:39 UTC (rev 8281)
@@ -26,7 +26,7 @@
if ( photopool.length ) {
r = photopool.pop();
} else {
- r = new photoclass( this , { visible : false } );
+ r = new lz.photoclass( this , { visible : false } );
new LzDatapath( r );
r.txt.setVisible( false )
}
Modified: openlaszlo/trunk/demos/lzpixmobile/classes/photocollection.lzx
===================================================================
--- openlaszlo/trunk/demos/lzpixmobile/classes/photocollection.lzx
2008-03-16 13:05:06 UTC (rev 8280)
+++ openlaszlo/trunk/demos/lzpixmobile/classes/photocollection.lzx
2008-03-16 16:13:39 UTC (rev 8281)
@@ -31,7 +31,7 @@
if ( photopool.length ) {
r = photopool.pop();
} else {
- r = new photoclass( this , { visible : false } );
+ r = new lz.photoclass( this , { visible : false } );
new LzDatapath( r );
r.txt.setVisible( false )
}
Modified: openlaszlo/trunk/lps/components/base/basegrid.lzx
===================================================================
--- openlaszlo/trunk/lps/components/base/basegrid.lzx 2008-03-16 13:05:06 UTC
(rev 8280)
+++ openlaszlo/trunk/lps/components/base/basegrid.lzx 2008-03-16 16:13:39 UTC
(rev 8281)
@@ -46,10 +46,10 @@
<!--- The class to use to construct columns, if the
columns are inferred by the basegrid.
@access protected -->
- <attribute name="_columnclass" value="basegridcolumn" when="once"/>
+ <attribute name="_columnclass" value="lz.basegridcolumn" when="once"/>
<!--- The class to use to construct rows.
@access protected -->
- <attribute name="_rowclass" value="basegridrow" when="once"/>
+ <attribute name="_rowclass" value="lz.basegridrow" when="once"/>
<!--- A boolean. If true, the grid will keep its width set to the size
of the header. This is automatically set to true for grids that
@@ -393,7 +393,7 @@
var cells = [];
if ( svl ){
for ( var i = 0; i< svl.length; i++ ){
- if ( svl[ i ] instanceof basegridcolumn ) {
+ if ( svl[ i ] instanceof lz.basegridcolumn ) {
this.columns.push( svl[ i ] );
cells.push( svl[ i ]._getCellForColumn() );
}
Modified: openlaszlo/trunk/lps/components/base/basetabs.lzx
===================================================================
--- openlaszlo/trunk/lps/components/base/basetabs.lzx 2008-03-16 13:05:06 UTC
(rev 8280)
+++ openlaszlo/trunk/lps/components/base/basetabs.lzx 2008-03-16 16:13:39 UTC
(rev 8281)
@@ -35,7 +35,7 @@
// If I'm selected, tell my parent to select me. Basetabs cannot
exist
// w/o basetabpanes, so not necessary to check for existence.
- if (parent instanceof basetabsbar && tabpane.selected) {
+ if (parent instanceof lz.basetabsbar && tabpane.selected) {
parent.select(this);
}
@@ -47,7 +47,7 @@
<!--- @keywords private -->
<method name="destroy">
<![CDATA[
- if (parent instanceof basetabsbar && parent._initcomplete) {
+ if (parent instanceof lz.basetabsbar && parent._initcomplete) {
// We need to move selected to another tab
if (parent._selector.selected[0] == this) {
if (parent.subviews.length == 1) {
@@ -460,7 +460,7 @@
<method name="determinePlacement" args="v,p">
<![CDATA[
- if (v instanceof basetabpane) {
+ if (v instanceof lz.basetabpane) {
// reassign parent of view to basetabs
v.parent = this.parent;
p = this.defaultplacement;
@@ -602,21 +602,21 @@
<handler name="onconstruct">
// Create tabsbar
if (this.barclass != "") {
- if (typeof(global[this.barclass]) != "undefined") {
- this.bar = new global[this.barclass](this, {}, null, true);
+ if (typeof(lz[this.barclass]) != "undefined") {
+ this.bar = new lz[this.barclass](this, {}, null, true);
} else {
Debug.write('barclass ' + this.barclass + ' is undefined');
}
}
if (this.bar == null) {
- this.bar = new basetabsbar(this, {}, null, true);
+ this.bar = new lz.basetabsbar(this, {}, null, true);
Debug.write('Using basetabsbar for tab bar');
}
// Create tabscontent, if it hasn't been already created
if (this.contentclass != "") {
- if (typeof(global[this.contentclass]) != "undefined") {
- this.content = new global[this.contentclass](this, {},
null, true);
+ if (typeof(lz[this.contentclass]) != "undefined") {
+ this.content = new lz[this.contentclass](this, {}, null,
true);
} else {
Debug.write('contentclass ' + this.contentclass +
' is undefined');
@@ -651,8 +651,8 @@
}
}
}
- if (typeof(global[tc]) != "undefined") {
- v.tab = new global[tc](this.bar, { tabpane: v }, null,
true);
+ if (typeof(lz[tc]) != "undefined") {
+ v.tab = new lz[tc](this.bar, { tabpane: v }, null, true);
} else {
if ($debug) {
Debug.write('tabclass \'' + tc + '\' is undefined');
@@ -823,7 +823,7 @@
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 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