Changeset 13071
- Timestamp:
- 03/13/08 10:05:34 (10 months ago)
- Files:
-
- 1 modified
-
dijit/trunk/_base/focus.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dijit/trunk/_base/focus.js
r12769 r13071 183 183 } 184 184 185 dojo.connect(targetWindow.document, "onmousedown", null,function(evt){185 dojo.connect(targetWindow.document, "onmousedown", function(evt){ 186 186 dijit._justMouseDowned = true; 187 187 setTimeout(function(){ dijit._justMouseDowned = false; }, 0); … … 257 257 } 258 258 // otherwise, find the iframe this node refers to (can't access it via parentNode, 259 // need to do this trick instead) and continue tracing up the document260 node=d ojo.query("iframe").filter(function(iframe){ return iframe.contentDocument.body===node; })[0];259 // need to do this trick instead). window.frameElement is supported in IE/FF/Webkit 260 node=dijit.getDocumentWindow(node.ownerDocument).frameElement; 261 261 }else{ 262 262 var id = node.getAttribute && node.getAttribute("widgetId");