[Laszlo-dev] For Review: Change 20071115-maxcarlson-R Summary: Use Lz.attachEventHandler() instead of binding directly to window and document events

Max Carlson max at openlaszlo.org
Thu Nov 15 12:06:54 PST 2007


Change 20071115-maxcarlson-R by maxcarlson at Roboto on 2007-11-15  
10:34:26 PST
     in /Users/maxcarlson/openlaszlo/trunk
     for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Use Lz.attachEventHandler() instead of binding directly to  
window and document events

New Features:

Bugs Fixed: LPP-4715 - Include a method for attaching event handlers  
in the platform javascript

Technical Reviewer: promanik
QA Reviewer: jcrowley
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details: LzKeyboardKernel.js - Add comments.

LzSprite.js - Use single function to dispatch sprite mouse events.   
Remove obsolete cleanup in  __cleanUpForIE().

LzTextSprite.js - Refactor text/inputtext selection to  
LzInputTextSprite.js.

LzMouseKernel.js - Use Lz.attachEventHandler() for event bindings,  
except for oncontextmenu.

LzInputTextSprite.js - Improve comments, unify text/inputtext  
selection control.

LzMousewheelKernel.js - Use Lz.attachEventHandler() to listen for  
mousewheel events.


Tests: Tested LzPix, Amazon and the components sampler in IE 6 and 7,  
Safari 3 OS X, and Firefox 2 OS x.  Tested with IE 6 and drip detector  
to confirm there are no memory leaks.

Files:
M      WEB-INF/lps/lfc/kernel/dhtml/LzKeyboardKernel.js
M      WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
M      WEB-INF/lps/lfc/kernel/dhtml/LzTextSprite.js
M      WEB-INF/lps/lfc/kernel/dhtml/LzMouseKernel.js
M      WEB-INF/lps/lfc/kernel/dhtml/LzInputTextSprite.js
M      lps/includes/source/LzMousewheelKernel.js

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20071115-maxcarlson-R.tar


More information about the Laszlo-dev mailing list