-<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
- */
-/**\r
+<html>\r
+<head>\r
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> \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">/**\r
* @class Ext.Element\r
*/\r
Ext.Element.addMethods(\r
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
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
}\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
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
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
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
}\r
return mask;\r
},\r
- \r
+\r
<div id="method-Ext.Element-unmask"></div>/**\r
* Removes a previously applied mask.\r
*/\r
}\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
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
return shim;\r
}\r
};\r
-}());</pre>
-</body>
+}());</pre> \r
+</body>\r
</html>
\ No newline at end of file