Upgrade to ExtJS 3.1.1 - Released 02/08/2010
[extjs.git] / docs / source / Element.fx-more.html
index cfabd7a..6c3f733 100644 (file)
@@ -18,7 +18,7 @@ function(){
            XMASKED = "x-masked",\r
                XMASKEDRELATIVE = "x-masked-relative",\r
         data = Ext.Element.data;\r
-               \r
+\r
        return {\r
                <div id="method-Ext.Element-isVisible"></div>/**\r
             * Checks whether the element is currently visible using both visibility and display properties.\r
@@ -30,8 +30,8 @@ function(){
                        p = this.dom.parentNode;\r
                if(deep !== true || !vis){\r
                    return vis;\r
-               }               \r
-               while(p && !/body/i.test(p.tagName)){\r
+               }\r
+               while(p && !/^body/i.test(p.tagName)){\r
                    if(!Ext.fly(p, '_isVisible').isVisible()){\r
                        return false;\r
                    }\r
@@ -39,7 +39,7 @@ function(){
                }\r
                return true;\r
            },\r
-           \r
+\r
            <div id="method-Ext.Element-isDisplayed"></div>/**\r
             * Returns true if display is not "none"\r
             * @return {Boolean}\r
@@ -47,20 +47,20 @@ function(){
            isDisplayed : function() {\r
                return !this.isStyle(DISPLAY, NONE);\r
            },\r
-           \r
+\r
                <div id="method-Ext.Element-enableDisplayMode"></div>/**\r
             * Convenience method for setVisibilityMode(Element.DISPLAY)\r
             * @param {String} display (optional) What to set display to when visible\r
             * @return {Ext.Element} this\r
             */\r
-           enableDisplayMode : function(display){          \r
+           enableDisplayMode : function(display){\r
                this.setVisibilityMode(Ext.Element.DISPLAY);\r
                if(!Ext.isEmpty(display)){\r
                 data(this.dom, 'originalDisplay', display);\r
             }\r
                return this;\r
            },\r
-           \r
+\r
                <div id="method-Ext.Element-mask"></div>/**\r
             * Puts a mask over this element to disable user interaction. Requires core.css.\r
             * This method can only be applied to elements which accept child nodes.\r
@@ -73,9 +73,9 @@ function(){
                        dom = me.dom,\r
                        dh = Ext.DomHelper,\r
                        EXTELMASKMSG = "ext-el-mask-msg",\r
-                el, \r
+                el,\r
                 mask;\r
-                       \r
+\r
                if(me.getStyle("position") == "static"){\r
                    me.addClass(XMASKEDRELATIVE);\r
                }\r
@@ -85,10 +85,10 @@ function(){
                if((el = data(dom, 'mask'))){\r
                    el.remove();\r
                }\r
-       \r
+\r
             mask = dh.append(dom, {cls : "ext-el-mask"}, true);\r
                data(dom, 'mask', mask);\r
-       \r
+\r
                me.addClass(XMASKED);\r
                mask.setDisplayed(true);\r
                if(typeof msg == 'string'){\r
@@ -104,7 +104,7 @@ function(){
                }\r
                return mask;\r
            },\r
-       \r
+\r
            <div id="method-Ext.Element-unmask"></div>/**\r
             * Removes a previously applied mask.\r
             */\r
@@ -123,7 +123,7 @@ function(){
                }\r
                me.removeClass([XMASKED, XMASKEDRELATIVE]);\r
            },\r
-       \r
+\r
            <div id="method-Ext.Element-isMasked"></div>/**\r
             * Returns true if this element is masked\r
             * @return {Boolean}\r
@@ -132,14 +132,14 @@ function(){
             var m = data(this.dom, 'mask');\r
                return m && m.isVisible();\r
            },\r
-           \r
+\r
            <div id="method-Ext.Element-createShim"></div>/**\r
             * Creates an iframe shim for this element to keep selects and other windowed objects from\r
             * showing through.\r
             * @return {Ext.Element} The new shim element\r
             */\r
            createShim : function(){\r
-               var el = document.createElement('iframe'),              \r
+               var el = document.createElement('iframe'),\r
                        shim;\r
                el.frameBorder = '0';\r
                el.className = 'ext-shim';\r