[qooxdoo-commit] SF.net SVN: qooxdoo: [13271] trunk/qooxdoo/frontend/framework/source/class/ qx
Brought to you by:
ecker,
martinwittemann
From: <jon...@us...> - 2008-04-30 12:58:14
|
Revision: 13271 http://qooxdoo.svn.sourceforge.net/qooxdoo/?rev=13271&view=rev Author: jonathan_rass Date: 2008-04-30 05:58:09 -0700 (Wed, 30 Apr 2008) Log Message: ----------- Added load event to iframe widget Modified Paths: -------------- trunk/qooxdoo/frontend/framework/source/class/qx/event/handler/Iframe.js trunk/qooxdoo/frontend/framework/source/class/qx/html/Iframe.js trunk/qooxdoo/frontend/framework/source/class/qx/ui/embed/Iframe.js Modified: trunk/qooxdoo/frontend/framework/source/class/qx/event/handler/Iframe.js =================================================================== --- trunk/qooxdoo/frontend/framework/source/class/qx/event/handler/Iframe.js 2008-04-30 12:58:09 UTC (rev 13270) +++ trunk/qooxdoo/frontend/framework/source/class/qx/event/handler/Iframe.js 2008-04-30 12:58:09 UTC (rev 13271) @@ -75,8 +75,13 @@ // interface implementation canHandleEvent : function(target, type) { - return target.nodeType !== undefined && type === "load" && - target.tagName.toLowerCase() === "iframe"; + var canHandle = ( + target.nodeType !== undefined && + type === "load" && + target.tagName.toLowerCase() === "iframe" + ); + + return canHandle; }, Modified: trunk/qooxdoo/frontend/framework/source/class/qx/html/Iframe.js =================================================================== --- trunk/qooxdoo/frontend/framework/source/class/qx/html/Iframe.js 2008-04-30 12:58:09 UTC (rev 13270) +++ trunk/qooxdoo/frontend/framework/source/class/qx/html/Iframe.js 2008-04-30 12:58:09 UTC (rev 13271) @@ -27,7 +27,18 @@ extend : qx.html.Element, + /* + ***************************************************************************** + EVENTS + ***************************************************************************** + */ + events: + { + "load" : "qx.event.type.Event" + }, + + /* ***************************************************************************** MEMBERS Modified: trunk/qooxdoo/frontend/framework/source/class/qx/ui/embed/Iframe.js =================================================================== --- trunk/qooxdoo/frontend/framework/source/class/qx/ui/embed/Iframe.js 2008-04-30 12:58:09 UTC (rev 13270) +++ trunk/qooxdoo/frontend/framework/source/class/qx/ui/embed/Iframe.js 2008-04-30 12:58:09 UTC (rev 13271) @@ -55,7 +55,7 @@ events: { - + "load" : "qx.event.type.Event" }, @@ -113,9 +113,22 @@ */ + getWindow : function() + { + return this.getContentElement().getWindow(); + }, + getDocument : function() + { + return this.getContentElement().getDocument(); + }, + getBody : function() + { + return this.getContentElement().getBody(); + }, + /* --------------------------------------------------------------------------- APPLY ROUTINES This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |