Upgrade to ExtJS 3.0.3 - Released 10/11/2009
[extjs.git] / docs / source / yui-bridge.html
index 2c4bee9..4431103 100644 (file)
@@ -1,11 +1,17 @@
-<html>\r
-<head>\r
-  <title>The source code</title>\r
-    <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />\r
-    <script type="text/javascript" src="../resources/prettify/prettify.js"></script>\r
-</head>\r
-<body  onload="prettyPrint();">\r
-    <pre class="prettyprint lang-js">if(typeof YAHOO == "undefined"){
+<html>
+<head>
+  <title>The source code</title>
+    <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
+    <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
+</head>
+<body  onload="prettyPrint();">
+    <pre class="prettyprint lang-js">/*!
+ * Ext JS Library 3.0.3
+ * Copyright(c) 2006-2009 Ext JS, LLC
+ * 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.";
 }
 
         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 +39,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 +378,6 @@ YAHOO.util.Region.prototype.constrainTo = function(r) {
 };
 
 
-})();</pre>    \r
-</body>\r
+})();</pre>
+</body>
 </html>
\ No newline at end of file