[Laszlo-checkins] r14407 - openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml

max@openlaszlo.org max at openlaszlo.org
Wed Jul 29 16:59:57 PDT 2009


Author: max
Date: 2009-07-29 16:59:56 -0700 (Wed, 29 Jul 2009)
New Revision: 14407

Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzMouseKernel.js
   openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
Log:
Change 20090729-maxcarlson-i by maxcarlson at Bank on 2009-07-29 16:57:45 PDT
    in /Users/maxcarlson/openlaszlo/trunk-clean
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Fix exceptions in IE DHTML from recent changes

Bugs Fixed: LPP-5477 - DHTML: inputtext and clickable

Technical Reviewer: ptw
QA Reviewer: andre.bargull at udo.edu

Details: LzSprite - Add sensible defaults for _w and _h

LzMouseKernel - Test value of targ more carefully

Tests: LPP-5477 and LPP-7661 now pass in IE DHTML



Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzMouseKernel.js
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzMouseKernel.js	2009-07-29 23:59:30 UTC (rev 14406)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzMouseKernel.js	2009-07-29 23:59:56 UTC (rev 14407)
@@ -45,7 +45,7 @@
             LzMouseKernel.__sendMouseMove(e);
             // hide any active inputtexts to allow clickable to work - see LPP-5447...
             if (lzinputproto && lzinputproto.__lastshown != null) {
-                if (! (targ.owner instanceof LzInputTextSprite)) {
+                if (targ && targ.owner && ! (targ.owner instanceof LzInputTextSprite)) {
                     if (! lzinputproto.__lastshown.__isMouseOver()) {
                         lzinputproto.__lastshown.__hide();
                     }

Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js	2009-07-29 23:59:30 UTC (rev 14406)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js	2009-07-29 23:59:56 UTC (rev 14407)
@@ -856,6 +856,14 @@
 LzSprite.prototype.resourceWidth = null;
 LzSprite.prototype.resourceHeight = null;
 LzSprite.prototype.cursor = null;
+/** Set to a value that won't match the cache but is still a sensible default
+  * @access private
+  */
+LzSprite.prototype._w = '0pt';
+/** Set to a value that won't match the cache but is still a sensible default
+  * @access private
+  */
+LzSprite.prototype._h = '0pt';
 /**
   * @access private
   */



More information about the Laszlo-checkins mailing list