So it looks like there was a facility for automatically creating setters on from the <params> tag, which
nobody seems to use and isn't documented. Can I just get rid of this code in LzParams then:


-
-
-//==============================================================================
-// @keywords private
-//==============================================================================
-LzParam.prototype.__LZapplyArgs = function ( args ){
-    for ( var a in args ){
-
-        var pset = this.setters[ a ];
-        if ( pset == null ){
-            pset = "$psetter" + a;
-            this.setters[ a ] = pset;
-            this[ pset ] = this.makeSetterForParam( a );
-            //Debug.write( "generated setter: " + pset );
-        }
-
-        if ( pset != -1 ){
-            //Debug.write( "setter for " + a + " : " + pset );
-            this[ pset ] ( args[ a ] );
-        }
-    }
-}
-
-LzParam.prototype.__LZresolveRefs = function ( refs ){
-    //Debug.write( "resolve refs " + refs );
-    for ( var a in refs ){
-        var pset = this.setters[ a ];
-        if ( pset == null ){
-            pset = "$psetter" + a;
-            this.setters[ a ] = pset;
-            this[ pset ] = this.makeSetterForParam ( a );
-            //Debug.write( "generated setter: " + pset );
-        }
-    }
-    super.__LZresolveRefs( refs );
-}
-
-LzParam.prototype.makeSetterForParam = function( param ) {
-    var f = function ( val ){
-        var ac = arguments.callee;
-        //Debug.write( "in setter for " + ac.storedparam + " set to " + val );
-        ac.plist.setValue ( ac.storedparam , val );
-    }
-    f.plist = this;
-    f.storedparam = param;
-    return f;
-}
-LzParam.prototype.makeSetterForParam = function( param ) {
-    var f = function ( val ){
-        var ac = arguments.callee;
-        //Debug.write( "in setter for " + ac.storedparam + " set to " + val );
-        ac.plist.setValue ( ac.storedparam , val );
-    }
-    f.plist = this;
-    f.storedparam = param;
-    return f;
-}



--
Henry Minsky
Software Architect
[EMAIL PROTECTED]

_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to