[Laszlo-checkins] r14087 - openlaszlo/trunk/lps/includes/source

max@openlaszlo.org max at openlaszlo.org
Mon Jun 8 23:13:21 PDT 2009


Author: max
Date: 2009-06-08 23:13:20 -0700 (Mon, 08 Jun 2009)
New Revision: 14087

Modified:
   openlaszlo/trunk/lps/includes/source/iframemanager.js
Log:
Change 20090608-maxcarlson-8 by maxcarlson at Bank on 2009-06-08 17:48:59 PDT
    in /Users/maxcarlson/openlaszlo/trunk-clean
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Fix context menus for iframes in IE DHTML

Bugs Fixed: LPP-8255 - IE DHTML: right-clicking an iframe causes a runtime exception

Technical Reviewer: hminsky
QA Reviewer: lorien

Details: Ensure the correct IE-specific event object is passed into the mouse handler.

Tests: See LPP-8255



Modified: openlaszlo/trunk/lps/includes/source/iframemanager.js
===================================================================
--- openlaszlo/trunk/lps/includes/source/iframemanager.js	2009-06-09 00:50:32 UTC (rev 14086)
+++ openlaszlo/trunk/lps/includes/source/iframemanager.js	2009-06-09 06:13:20 UTC (rev 14087)
@@ -386,6 +386,7 @@
                 lz.embed.attachEventHandler(iframe.document, 'click', lz.embed.iframemanager, '__mouseEvent', id);
                 //lz.embed.attachEventHandler(iframe.document, 'mousemove', lz.embed.iframemanager, '__mouseEvent', id);
                 iframe.document.oncontextmenu = function(e) {
+                    if (! e) e = iframe.event;
                     return lz.embed.iframemanager.__mouseEvent(e, id);
                 }
                 if (lz.embed.browser.isIE) {



More information about the Laszlo-checkins mailing list