Changeset 13071

Show
Ignore:
Timestamp:
03/13/08 10:05:34 (10 months ago)
Author:
liucougar
Message:

fixes #6112

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/_base/focus.js

    r12769 r13071  
    183183                } 
    184184 
    185                 dojo.connect(targetWindow.document, "onmousedown", null, function(evt){ 
     185                dojo.connect(targetWindow.document, "onmousedown", function(evt){ 
    186186                        dijit._justMouseDowned = true; 
    187187                        setTimeout(function(){ dijit._justMouseDowned = false; }, 0); 
     
    257257                                        } 
    258258                                        // 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 document 
    260                                         node=dojo.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; 
    261261                                }else{ 
    262262                                        var id = node.getAttribute && node.getAttribute("widgetId");