Author: ptw
Date: 2008-02-23 13:27:26 -0800 (Sat, 23 Feb 2008)
New Revision: 8096
Modified:
openlaszlo/trunk/WEB-INF/lps/lfc/core/LzNode.lzs
Log:
Change 20080223-ptw-N by [EMAIL PROTECTED] on 2008-02-23 16:21:10 EST
in /Users/ptw/OpenLaszlo/ringding
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Fix type-oh spotted by Andre in r8090
Bugs Fixed:
[java] Warning: Assignment to free variable styleValue in core/LzNode.lzs (513)
Technical Reviewer: [EMAIL PROTECTED] (pending)
Tests:
Inspection
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/core/LzNode.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/core/LzNode.lzs 2008-02-23 17:25:17 UTC
(rev 8095)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/core/LzNode.lzs 2008-02-23 21:27:26 UTC
(rev 8096)
@@ -502,7 +502,7 @@
function __LZstyleBindAttribute(attr, prop) {
// we are going to bypass the CSS API and call the underlying
// implementation because we're concerned about speed
- var val = LzCSSStyle.getPropertyValueFor(this, prop);
+ var styleValue = LzCSSStyle.getPropertyValueFor(this, prop);
// This is a hack because people want to give color styles as
// Ox... which is not valid CSS, so they pass it as a string.
// They really should be using #...
@@ -513,9 +513,9 @@
styleValue = Number(styleValue);
}
// Style expressions are constraints
- if (val instanceof LzStyleExpr) {
- var source = val.sourceAttributeName;
- if (val instanceof LzStyleAttr) {
+ if (styleValue instanceof LzStyleExpr) {
+ var source = styleValue.sourceAttributeName;
+ if (styleValue instanceof LzStyleAttr) {
// Create a new binder to update the destination attribute,
var binder = new LzStyleAttrBinder(this, attr, source);
// register it on the source attribute,
@@ -527,13 +527,13 @@
this.__LZdelegates.push(new LzDelegate(binder, 'bind', this, 'on' +
source));
// bind it
binder.bind();
- } else if (val instanceof LzStyleIdent) {
+ } else if (styleValue instanceof LzStyleIdent) {
this.setAttribute(attr, global[source]);
} else if ($debug) {
- Debug.error("Unknown style expression %w", val);
+ Debug.error("Unknown style expression %w", styleValue);
}
} else {
- this.setAttribute(attr, val);
+ this.setAttribute(attr, styleValue);
}
};
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins