[Laszlo-checkins] r12341 - in openlaszlo/branches/4.2: . WEB-INF/lps/lfc/compiler WEB-INF/lps/lfc/services WEB-INF/lps/lfc/views
ptw@openlaszlo.org
ptw at openlaszlo.org
Wed Jan 7 12:50:44 PST 2009
Author: ptw
Date: 2009-01-07 12:50:41 -0800 (Wed, 07 Jan 2009)
New Revision: 12341
Modified:
openlaszlo/branches/4.2/
openlaszlo/branches/4.2/WEB-INF/lps/lfc/compiler/LzRuntime.lzs
openlaszlo/branches/4.2/WEB-INF/lps/lfc/services/LzBrowser.lzs
openlaszlo/branches/4.2/WEB-INF/lps/lfc/views/LzText.lzs
Log:
Merged revisions 12318-12321,12323 via svnmerge from
http://svn.openlaszlo.org/openlaszlo/trunk
.......
r12318 | hqm | 2009-01-06 23:10:25 -0500 (Tue, 06 Jan 2009) | 38 lines
Change 20090106-hqm-O by hqm at badtzmaru.home on 2009-01-06 23:05:09 EST
in /Users/hqm/openlaszlo/trunk3/WEB-INF/lps/lfc
for http://svn.openlaszlo.org/openlaszlo/trunk/WEB-INF/lps/lfc
Summary: fix url escaping bug swf9
New Features:
Bugs Fixed: LPP-7532
Technical Reviewer: ptw
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
+ use encodeURIComponent in lzBrowser
+ deprecate LzBrowser.urlEscape
+ add alias for decodeURIComponent in as2 runtime
Tests:
demos/amazon/amazon.lzx in swf8,swf9,dhtml
test/rpc/javarpc/simple.lzx in swf8,swf9,dhtml
test/lfc/data/alldata.lzx (alldata.lzx has bugs, but there should be no regressions from pre-changeset behavior in trunk)
demos/lzpix/app.lzx in swf8,swf9,dhtml
demos/calendar/calendar.lzx in swf8,swf9,dhtml
.......
r12323 | max | 2009-01-07 03:27:28 -0500 (Wed, 07 Jan 2009) | 16 lines
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
.......
Property changes on: openlaszlo/branches/4.2
___________________________________________________________________
Name: svnmerge-integrated
- /openlaszlo/branches/4.1:1-10153 /openlaszlo/branches/devildog:1-8432 /openlaszlo/branches/pagan-deities:1-7955,8825,10756-10920,10922-10928,10930-10935,11151,11207,11554 /openlaszlo/branches/paperpie:1-6504,6506-6574,6576-7135,7137-7235 /openlaszlo/branches/wafflecone:1-5746,5818-6068,6070-6205,6207-6213,6216-6265,6267-6368,6370-6431,6433-6450,6497,6509,6661,7097,7872 /openlaszlo/trunk:1-12154,12172-12175,12177-12185,12187-12194,12196,12201,12208,12251-12252,12254-12255,12257-12258,12260,12262-12266,12268-12269,12271-12275,12278-12285,12303
+ /openlaszlo/branches/4.1:1-10153 /openlaszlo/branches/devildog:1-8432 /openlaszlo/branches/pagan-deities:1-7955,8825,10756-10920,10922-10928,10930-10935,11151,11207,11554 /openlaszlo/branches/paperpie:1-6504,6506-6574,6576-7135,7137-7235 /openlaszlo/branches/wafflecone:1-5746,5818-6068,6070-6205,6207-6213,6216-6265,6267-6368,6370-6431,6433-6450,6497,6509,6661,7097,7872 /openlaszlo/trunk:1-12154,12172-12175,12177-12185,12187-12194,12196,12201,12208,12251-12252,12254-12255,12257-12258,12260,12262-12266,12268-12269,12271-12275,12278-12285,12303,12318-12321,12323
Modified: openlaszlo/branches/4.2/WEB-INF/lps/lfc/compiler/LzRuntime.lzs
===================================================================
--- openlaszlo/branches/4.2/WEB-INF/lps/lfc/compiler/LzRuntime.lzs 2009-01-07 18:28:41 UTC (rev 12340)
+++ openlaszlo/branches/4.2/WEB-INF/lps/lfc/compiler/LzRuntime.lzs 2009-01-07 20:50:41 UTC (rev 12341)
@@ -1,7 +1,7 @@
/* -*- mode: JavaScript; c-basic-offset: 2; -*- */
/**
- * @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 private
@@ -128,6 +128,7 @@
if ($as2) {
var encodeURIComponent = escape;
+var decodeURIComponent = unescape;
}
/*
Modified: openlaszlo/branches/4.2/WEB-INF/lps/lfc/services/LzBrowser.lzs
===================================================================
--- openlaszlo/branches/4.2/WEB-INF/lps/lfc/services/LzBrowser.lzs 2009-01-07 18:28:41 UTC (rev 12340)
+++ openlaszlo/branches/4.2/WEB-INF/lps/lfc/services/LzBrowser.lzs 2009-01-07 20:50:41 UTC (rev 12341)
@@ -1,5 +1,5 @@
/**
- * @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.
*
* @affects lzbrowser
@@ -335,9 +335,13 @@
* Escape a string using URL encoding.
* @param String str: The string to escape
* @return String: An URL escaped string
+ * @deprecated Use encodeURIComponent(string) instead.
*/
function urlEscape (str:String) :String {
- return escape( str );
+ if ($debug) {
+ Debug.info('lz.Browser.urlEscape is deprecated, use encodeURIComponent instead');
+ }
+ return encodeURIComponent( str );
}
/**
@@ -346,7 +350,10 @@
* @return String: An URL decoded string
*/
function urlUnescape (str:String) :String {
- return unescape( str.split('+').join(' ') );
+ if ($debug) {
+ Debug.info('lz.Browser.urlUnescape is deprecated, use decodeURIComponent instead');
+ }
+ return decodeURIComponent(str);
}
/** @access private */
Modified: openlaszlo/branches/4.2/WEB-INF/lps/lfc/views/LzText.lzs
===================================================================
--- openlaszlo/branches/4.2/WEB-INF/lps/lfc/views/LzText.lzs 2009-01-07 18:28:41 UTC (rev 12340)
+++ openlaszlo/branches/4.2/WEB-INF/lps/lfc/views/LzText.lzs 2009-01-07 20:50:41 UTC (rev 12341)
@@ -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
@@ -380,7 +380,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