[Laszlo-checkins] r12323 - openlaszlo/trunk/WEB-INF/lps/lfc/views
max@openlaszlo.org
max at openlaszlo.org
Wed Jan 7 00:27:32 PST 2009
Author: max
Date: 2009-01-07 00:27:28 -0800 (Wed, 07 Jan 2009)
New Revision: 12323
Modified:
openlaszlo/trunk/WEB-INF/lps/lfc/views/LzText.lzs
Log:
Change 20090106-maxcarlson-C by maxcarlson at Bank.lan on 2009-01-06 21:22:05 PST
in /Users/maxcarlson/openlaszlo/trunk-clean
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Always send ontext when text attribute is set
Bugs Fixed: LPP-7109 - Ontext events don't seem to fire if the text is set to the same value, LPP-7567 - if the text of inputtext is "", and when setAttribute text to "" , the ontext event will not be sent
Technical Reviewer: andre.bargull at udo.edu
QA Reviewer: promanik
Details: Always send ontext, even when the value didn't change.
Tests: See LPP-7109 and LPP-7567
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/views/LzText.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/views/LzText.lzs 2009-01-07 08:27:03 UTC (rev 12322)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/views/LzText.lzs 2009-01-07 08:27:28 UTC (rev 12323)
@@ -1,6 +1,6 @@
/**
*
- * @copyright Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved.
+ * @copyright Copyright 2001-2009 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
*
* @access public
@@ -398,7 +398,10 @@
// force to a string
t = String(t);
- if (this._textrecompute != true && t == this.getText()) return;
+ if (this._textrecompute != true && t == this.getText()) {
+ if (this.ontext.ready) this.ontext.sendEvent(t);
+ return;
+ }
var tsprite:LzTextSprite = (this.sprite cast LzTextSprite);
if (this.visible) tsprite.setVisible(this.visible);
if (this.maxlength != null && t.length > this.maxlength){
More information about the Laszlo-checkins
mailing list