On the other hand, that's what the source repository is for. You  
could leave a note saying code was deleted on a certain date, so that  
later developers can find it in the repository.

jim

On Jun 15, 2006, at 3:37 PM, Max Carlson wrote:

> Just an FYI - I've found it useful to leave in old versions of the
> methods (setText here), commented out so I can figure out what a  
> method
> used to do.
>
> -- 
> Regards,
> Max Carlson
> OpenLaszlo.org
>
> [EMAIL PROTECTED] wrote:
>> Author: hqm
>> Date: 2006-06-13 11:11:34 -0400 (Tue, 13 Jun 2006)
>> New Revision: 948
>>
>> Modified:
>>    openlaszlo/branches/legals/WEB-INF/lps/lfc/kernel/swf/ 
>> LzInputTextSprite.as
>>    openlaszlo/branches/legals/WEB-INF/lps/lfc/kernel/swf/ 
>> LzTextSprite.as
>>    openlaszlo/branches/legals/WEB-INF/lps/lfc/views/LzText.lzs
>> Log:
>>
>>
>> Modified: openlaszlo/branches/legals/WEB-INF/lps/lfc/kernel/swf/ 
>> LzInputTextSprite.as
>> ===================================================================
>> --- openlaszlo/branches/legals/WEB-INF/lps/lfc/kernel/swf/ 
>> LzInputTextSprite.as 2006-06-13 14:50:12 UTC (rev 947)
>> +++ openlaszlo/branches/legals/WEB-INF/lps/lfc/kernel/swf/ 
>> LzInputTextSprite.as 2006-06-13 15:11:34 UTC (rev 948)
>> @@ -211,7 +211,7 @@
>>  // @keywords private
>>  //------------------------------------------------------------------ 
>> -----------
>>  LzInputTextSprite.prototype.handleOnFocus = function (  ){
>> -    Debug.write('LzInputTextSprite.handleOnFocus');
>> +    //Debug.write('LzInputTextSprite.handleOnFocus');
>>      if ( this.hasFocus ) { return; }
>>      var sf = targetPath(this.__LZtextclip);
>>
>>
>> Modified: openlaszlo/branches/legals/WEB-INF/lps/lfc/kernel/swf/ 
>> LzTextSprite.as
>> ===================================================================
>> --- openlaszlo/branches/legals/WEB-INF/lps/lfc/kernel/swf/ 
>> LzTextSprite.as      2006-06-13 14:50:12 UTC (rev 947)
>> +++ openlaszlo/branches/legals/WEB-INF/lps/lfc/kernel/swf/ 
>> LzTextSprite.as      2006-06-13 15:11:34 UTC (rev 948)
>> @@ -99,7 +99,7 @@
>>          textclip.autoSize = true;
>>          textclip.htmlText = this.format + "__ypgSAMPLE__";
>>
>> -        this.setAttribute("height", textclip._height);
>> +        this.height = textclip._height;
>>
>>          textclip.htmlText = this.format + this.text;
>>          if (!this.multiline) {
>>
>> Modified: openlaszlo/branches/legals/WEB-INF/lps/lfc/views/LzText.lzs
>> ===================================================================
>> --- openlaszlo/branches/legals/WEB-INF/lps/lfc/views/LzText.lzs       
>> 2006-06-13 14:50:12 UTC (rev 947)
>> +++ openlaszlo/branches/legals/WEB-INF/lps/lfc/views/LzText.lzs       
>> 2006-06-13 15:11:34 UTC (rev 948)
>> @@ -301,34 +301,27 @@
>>  }
>>  */
>>
>> -/*
>> +
>>  //------------------------------------------------------------------ 
>> ------------
>>  // @keywords private
>>  //------------------------------------------------------------------ 
>> ------------
>>  LzText.prototype.setWidth = function ( val ){
>>      this.sprite.setWidth(val);
>> -    this.__LZtextclip._width = val;
>> -    this._viewsetWidth( val );
>> +    super.setWidth( val );
>>      // recalculate height
>>      if (this.sizeToHeight) {
>> -        this.setHeight(this.__LZtextclip._height);
>> +        this.setHeight(this.sprite.height);
>>      }
>>  }
>>
>> -LzText.prototype._viewsetWidth = LzView.prototype.setWidth;
>> -
>> -
>>  //------------------------------------------------------------------ 
>> -----------
>>  // @keywords private
>>  //------------------------------------------------------------------ 
>> -----------
>>  LzText.prototype.setHeight = function ( val ){
>> -    //this.sprite.setHeight(val);
>> -    this._viewsetHeight( val );
>> -    this.__LZtextclip._height = val;
>> +    this.sprite.setHeight(val);
>> +    super.setHeight( val );
>>  }
>>
>> -LzText.prototype._viewsetHeight = LzView.prototype.setHeight;
>> -*/
>>
>>
>>  //------------------------------------------------------------------ 
>> ------------
>> @@ -607,48 +600,13 @@
>>  //------------------------------------------------------------------ 
>> -----------
>>  LzText.prototype.setText = function ( t ){
>>      this.sprite.setText(t);
>> -    /*
>> +    this.text =  t;
>> +    this.width = this.sprite.getTextWidth();
>> +    this.height = this.sprite.getTextHeight();
>> +    // [todo 2006-06 hqm] when should we send onwidth and  
>> onheight events?
>>
>> -    if (typeof(t) == 'undefined' || t == null) {
>> -        t = "";
>> -    } else if (typeof(t) != "string") {
>> -        t = t.toString();
>> -    }
>> -
>> -    // If accessibility is enabled, hunt for <img alt="....">  
>> tags and assign and
>> -    // put the alt tag somewhere a screen reader can find it.
>> -    if (canvas.accessible) {
>> -        t = this.annotateAAimg(t);
>> -    }
>> -
>> -    this.text =  t;// this.format + t if proper measurement were  
>> working
>> -    var mc = this.__LZtextclip;
>> -
>> -    //Debug.write('LzSprite.setText', this, t, mc);
>> -
>> -
>> -    mc.htmlText = this.format + t;
>> -
>> -    if (this.resize && (this.multiline == false)) {
>> -        // single line resizable fields adjust their width to  
>> match the text
>> -        var w = this.getTextWidth();
>> -        // only set width if it changed
>> -        if (w != this.width) this.setWidth(w);
>> -    }
>> -
>> -    //multiline resizable fields adjust their height
>> -    if (this.sizeToHeight) {
>> -        this.setHeight(mc._height);
>> -    }
>> -
>> -    if (this.multiline && this.scroll == 0 ) {
>> -        var scrolldel = new LzDelegate(this,  
>> "__LZforceScrollAttrs");
>> -        LzIdle.callOnIdle(scrolldel);
>> -    }
>> -
>>      //@event ontext: Sent whenever the text in the field changes.
>> -    this.ontext.sendEvent( );
>> -    */
>> +    this.ontext.sendEvent(t);
>>  }
>>
>>  // @field Number height: The height of the text field. If  
>> unspecified,
>>
>> _______________________________________________
>> Laszlo-checkins mailing list
>> [EMAIL PROTECTED]
>> http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins
>>
>
> _______________________________________________
> Laszlo-dev mailing list
> [email protected]
> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

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

Reply via email to