X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..c8256059947f3aa8f5b0a9a2acf55e2142bb4742:/docs/source/yui-bridge.html diff --git a/docs/source/yui-bridge.html b/docs/source/yui-bridge.html index 2c4bee9f..61349904 100644 --- a/docs/source/yui-bridge.html +++ b/docs/source/yui-bridge.html @@ -1,11 +1,18 @@ - - - The source code - - - - -
if(typeof YAHOO == "undefined"){
+
+
+      
+  The source code
+    
+    
+
+
+    
/*!
+ * Ext JS Library 3.2.1
+ * Copyright(c) 2006-2010 Ext JS, Inc.
+ * licensing@extjs.com
+ * http://www.extjs.com/license
+ */
+if(typeof YAHOO == "undefined"){
     throw "Unable to load Ext, core YUI utilities (yahoo, dom, event) not found.";
 }
 
@@ -19,28 +26,13 @@
         version = YAHOO.env.getVersion('yahoo').version.split('.'),
         mouseEnterSupported = parseInt(version[0]) >= 3,
         mouseCache = {},
-        isXUL = Ext.isGecko ? function(node){
-            return Object.prototype.toString.call(node) == '[object XULElement]';
-        } : function(){
-        }, isTextNode = Ext.isGecko ? function(node){
-            try{
-                return node.nodeType == 3;
-            }catch (e){
-                return false;
-            }
-        } : function(node){
-            return node.nodeType == 3;
-        }, elContains = function(parent, child){
+        elContains = function(parent, child){
             if(parent && parent.firstChild){
                 while(child){
                     if(child === parent){
                         return true;
                     }
-                    try{
-                        child = child.parentNode;
-                    }catch (e){
-                        return false;
-                    }
+                    child = child.parentNode;
                     if(child && (child.nodeType != 1)){
                         child = null;
                     }
@@ -48,8 +40,7 @@
             }
             return false;
         }, checkRelatedTarget = function(e){
-            var related = Ext.lib.Event.getRelatedTarget(e);
-            return !(isXUL(related) || elContains(e.currentTarget, related));
+            return !elContains(e.currentTarget, Ext.lib.Event.getRelatedTarget(e));
         };
 
 Ext.lib.Dom = {
@@ -388,6 +379,6 @@ YAHOO.util.Region.prototype.constrainTo = function(r) {
 };
 
 
-})();
- +})();
+ \ No newline at end of file