[Laszlo-checkins] r13242 - in openlaszlo/trunk/WEB-INF/lps/lfc: core data

bargull@openlaszlo.org bargull at openlaszlo.org
Tue Mar 10 08:01:57 PDT 2009


Author: bargull
Date: 2009-03-10 08:01:53 -0700 (Tue, 10 Mar 2009)
New Revision: 13242

Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/core/LzNode.lzs
   openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataset.lzs
Log:
Change 20090310-bargull-hLV by bargull at dell--p4--2-53 on 2009-03-10 11:30:39
    in /home/Admin/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: incompatible override errors

New Features:

Bugs Fixed: LPP-7888 (SWF9: lz.replicator does not compile)

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

Documentation:

Release Notes:

Details:
Remove return-type from "setData()" and "set_data", update override of "set_data" in LzDataset.
    

Tests:
testcase compiles in swf9



Modified: openlaszlo/trunk/WEB-INF/lps/lfc/core/LzNode.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/core/LzNode.lzs	2009-03-10 14:58:43 UTC (rev 13241)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/core/LzNode.lzs	2009-03-10 15:01:53 UTC (rev 13242)
@@ -1777,7 +1777,7 @@
   /**
     * @access private
     */
-  function $lzc$set_data (data:*) :void {
+  function $lzc$set_data (data:*) {
     this.data = data;
     if (data is LzDataNodeMixin) {
       var dp:LzDatapath = this.datapath || new LzDatapath(this);
@@ -1795,7 +1795,7 @@
    * @deprecated Use setAttribute('data', ...) instead
    * @devnote Don't mark as final, or replicator/lazyreplicator won't compile anymore
    */
-  function setData (data:*, ignore=null) :void {
+  function setData (data:*, ignore=null) {
     if ($debug) Debug.deprecated(this, arguments.callee, this.setAttribute);
     this.$lzc$set_data(data);
   }

Modified: openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataset.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataset.lzs	2009-03-10 14:58:43 UTC (rev 13241)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataset.lzs	2009-03-10 15:01:53 UTC (rev 13242)
@@ -374,7 +374,7 @@
 override function construct (parent, args) {
     this.nodeType = LzDataElement.DOCUMENT_NODE;
     this.ownerDocument = this;
-    
+
     this.queuerequests = false; // default to false, to emulate browser default
 
     this.oncanvas = parent == canvas || parent == null;
@@ -383,7 +383,7 @@
     if (!('proxyurl' in args)) {
         this.proxyurl = canvas.getProxyURL();
     }
-    
+
     if ('timeout' in args && args.timeout) {
         this.timeout = args.timeout;
     } else {
@@ -413,21 +413,21 @@
     if (name != null) {
         //for compatibility with dataNode API
         this.nodeName = name;
-        
+
         if (this.oncanvas) {
             canvas[ name ] = this;
         } else {
             // it's local - add the parent's UID
             name = this.parent.getUID() + '.' + name;
         }
-        
+
         if ($debug) {
             if (canvas.datasets[name] != null) {
                 Debug.warn("A dataset already exists with the name '%s': %w",
                            name, canvas.datasets[name]);
             }
         }
-        
+
         canvas.datasets[name] = this;
     }
 }
@@ -444,7 +444,7 @@
     if (this.dsloadDel) {
         this.dsloadDel.unregisterAll();
     }
-    
+
     var name:String = this.name;
     if (this.oncanvas) {
         if (canvas[ name ] === this) {
@@ -457,7 +457,7 @@
         delete canvas.datasets[ name ];
     }
 
-   super.destroy();
+    super.destroy();
 }
 
 /**
@@ -515,7 +515,7 @@
   * @param data a LzDataElement or list of Elements
   * @access private
   */
-override function $lzc$set_data (data:*) :void {
+override function $lzc$set_data (data:*) {
     if (data == null) {
         return;
     } else if (data instanceof Array) {
@@ -786,7 +786,7 @@
 function doRequest (ignore:* = null) :void {
     // src can be null if the dataset is loaded from initialdata
     if (! this.src) return
-    
+
     // We try to reuse the old datarequest object, unless
     // multirequest is true. If multirequest is true, we need
     // a separate datarequest obj for each request.
@@ -846,7 +846,7 @@
     dreq.getresponseheaders = this.getresponseheaders;
 
     dreq.secureport = this.secureport;
-    
+
     dreq.cacheable       =  this.cacheable;
     dreq.clientcacheable =  this.clientcacheable;
     dreq.trimwhitespace  =  this.trimwhitespace;
@@ -1013,7 +1013,7 @@
     dset.onerror.clearDelegates();
     // clear any data
     dset.$lzc$set_data([]);
-    
+
     this._p.push(dset);
 }
 



More information about the Laszlo-checkins mailing list