|
|
|
[
Permlink
| « Hide
]
Amy Muntz - 19/Jun/06 11:47 AM
Do the code review. Send out to laszlo-dev and contributor (listed in bug) and paste a copy into the JIRA bug comments section. Update test file, with case, if one is not provided.
Code Review of scrolledittext.lzx
1. A piece of debugging code crept into the code (tstDbg in this case) <_newinternalinputtext name="inp" id="tstDbg" x="${parent.border}" 2. The event function is mixing variables. Both v and this._vs refer to the same variable, and they should not be used in the same method. For example: Original: <method name="setvscrollwidth" args="v"> if(v){ this.setAttribute( "vscrollwidth", this._vs.width); }else{ this.setAttribute( "vscrollwidth", 0); } </method> Consistent (and streamlined) version: <method name="setvscrollwidth" args="v"> this.setAttribute("vscrollwidth", (this._vs ? this._vs.width : 0)); </method Michael - assigning to you. Please remove the debug code and use the simplified method that resulted from the email between you and Phil and attach new changeset. Then, we can get this checked in.
(Email: Hi Michael, Yes, you are right. Sorry about that. When I read through the code I believed the conditional was making sure this._vs was not null. Phil v is for visible. the latter method of eval still stands though... so <method name="setvscrollwidth" args="v"> this.setAttribute("vscrollwidth", (v ? this._vs.width : 0)); </method> no?) Two more small revisions on the file. Checked into trunk at revision 1101.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||