[Laszlo-checkins] r13687 - in openlaszlo/trunk/WEB-INF/lps/lfc: helpers kernel/dhtml kernel/swf kernel/swf9 views

bargull@openlaszlo.org bargull at openlaszlo.org
Wed Apr 15 11:15:09 PDT 2009


Author: bargull
Date: 2009-04-15 11:15:04 -0700 (Wed, 15 Apr 2009)
New Revision: 13687

Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/helpers/LzState.lzs
   openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzLibrary.js
   openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzLibrary.lzs
   openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzLibrary.as
   openlaszlo/trunk/WEB-INF/lps/lfc/views/LaszloView.lzs
   openlaszlo/trunk/WEB-INF/lps/lfc/views/LzInputText.lzs
   openlaszlo/trunk/WEB-INF/lps/lfc/views/LzText.lzs
Log:
Change 20090415-bargull-90F by bargull at dell--p4--2-53 on 2009-04-15 19:04:58
    in /home/Admin/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: replace calls to Function#apply

New Features:

Bugs Fixed: LPP-8016 (Performance differences between OL 4.0.x and 4.3.x) (partial)

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

Documentation:

Release Notes:

Details:
Replace [...].apply(this, ...) with direct calls to gain better performance.
    

Tests:



Modified: openlaszlo/trunk/WEB-INF/lps/lfc/helpers/LzState.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/helpers/LzState.lzs	2009-04-15 17:48:05 UTC (rev 13686)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/helpers/LzState.lzs	2009-04-15 18:15:04 UTC (rev 13687)
@@ -232,7 +232,7 @@
    * @access private
    */
   override function construct ( parent , args ){
-    super.construct.apply(this, arguments);
+    super.construct(parent, args);
     this.heldArgs = {};
     this.handlerMethodNames = {};
     this.appliedChildren = [];

Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzLibrary.js
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzLibrary.js	2009-04-15 17:48:05 UTC (rev 13686)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzLibrary.js	2009-04-15 18:15:04 UTC (rev 13687)
@@ -1,7 +1,7 @@
 /**
   * LzLibrary.as
   *
-  * @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.
   *
   * @topic LZX
@@ -63,7 +63,7 @@
   */
 function construct (parent, args) {
     this.stage = args.stage;
-    super.construct.apply(this, arguments);
+    super.construct(parent, args);
     this.sprite = new LzSprite(this, false, args);
     LzLibrary.libraries[args.name] = this;
 }
@@ -72,7 +72,7 @@
   * @access private
   */
 function init( ) {
-    super.init.apply(this, arguments);
+    super.init();
     if (this.stage == "late") {
         this.load();
     }
@@ -86,7 +86,7 @@
         this.sprite.destroy();
         this.sprite = null;
     }
-    super.destroy.apply(this, arguments);
+    super.destroy();
 }
 
 /** @access private */

Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzLibrary.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzLibrary.lzs	2009-04-15 17:48:05 UTC (rev 13686)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzLibrary.lzs	2009-04-15 18:15:04 UTC (rev 13687)
@@ -1,7 +1,7 @@
 /**
   * LzLibrary.as
   *
-  * @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.
   *
   * @topic LZX
@@ -89,7 +89,7 @@
   */
 function construct (parent, args) {
     this.stage = args.stage;
-    super.construct.apply(this, arguments);
+    super.construct(parent, args);
     this.sprite = new LzSprite(this, false, args);
     LzLibrary.libraries[args.name] = this;
 }
@@ -98,7 +98,7 @@
   * @access private
   */
 function init( ) {
-    super.init.apply(this, arguments);
+    super.init();
     if (this.stage == "late") {
         this.load();
     }
@@ -206,7 +206,7 @@
         this.sprite.destroy();
         this.sprite = null;
     }
-    super.destroy.apply(this, arguments);
+    super.destroy();
 }
 
 }; // End of LzLibrary

Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzLibrary.as
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzLibrary.as	2009-04-15 17:48:05 UTC (rev 13686)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzLibrary.as	2009-04-15 18:15:04 UTC (rev 13687)
@@ -92,7 +92,7 @@
   */
 override function construct (parent, args) {
     this.stage = args.stage;
-    super.construct.apply(this, arguments);
+    super.construct(parent, args);
     LzLibrary.libraries[args.name] = this;
 }
 
@@ -100,7 +100,7 @@
   * @access private
   */
 override function init( ) {
-    super.init.apply(this, arguments);
+    super.init();
     if (this.stage == "late") {
         this.load();
     }

Modified: openlaszlo/trunk/WEB-INF/lps/lfc/views/LaszloView.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/views/LaszloView.lzs	2009-04-15 17:48:05 UTC (rev 13686)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/views/LaszloView.lzs	2009-04-15 18:15:04 UTC (rev 13687)
@@ -555,8 +555,7 @@
         (vip).addSubview( this );
     } 
 
-    //this.callInherited( '__LZinstantiationDone' , arguments.callee );
-    super.__LZinstantiationDone.apply(this, arguments);
+    super.__LZinstantiationDone();
 }
 
 /** Reference to closest masked view in the hierarchy at or above
@@ -1883,7 +1882,7 @@
         }
     }
 
-    super.destroy.apply(this);
+    super.destroy();
 
     if (this.sprite) { this.sprite.destroy() }
 

Modified: openlaszlo/trunk/WEB-INF/lps/lfc/views/LzInputText.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/views/LzInputText.lzs	2009-04-15 17:48:05 UTC (rev 13686)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/views/LzInputText.lzs	2009-04-15 18:15:04 UTC (rev 13687)
@@ -105,7 +105,7 @@
 override function construct ( parent , args ){
     this.password = ('password' in args) ? (!! args.password) : false;
     this.focusable = true;
-    super.construct.apply(this, arguments);
+    super.construct(parent, args);
     this._onfocusDel = new LzDelegate( this , "_gotFocusEvent" , this,
                                             "onfocus" );
     this._onblurDel = new LzDelegate( this , "_gotBlurEvent" , this,

Modified: openlaszlo/trunk/WEB-INF/lps/lfc/views/LzText.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/views/LzText.lzs	2009-04-15 17:48:05 UTC (rev 13686)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/views/LzText.lzs	2009-04-15 18:15:04 UTC (rev 13687)
@@ -873,7 +873,7 @@
     // be set at init time
     this.multiline = ('multiline' in args) ? args.multiline : null;
 
-    super.construct.apply(this, arguments);
+    super.construct(parent, args);
 
     this.sizeToHeight = false;
 
@@ -991,7 +991,7 @@
 
   /** @access private */
   override function init () {
-    super.init.apply(this, arguments);
+    super.init();
 
     this._updateSize();
   };



More information about the Laszlo-checkins mailing list