4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <title>The source code</title>
6 <link href="../prettify/prettify.css" type="text/css" rel="stylesheet" />
7 <script type="text/javascript" src="../prettify/prettify.js"></script>
8 <style type="text/css">
9 .highlight { display: block; background-color: #ddd; }
11 <script type="text/javascript">
12 function highlight() {
13 document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
17 <body onload="prettyPrint(); highlight();">
18 <pre class="prettyprint lang-js"><span id='Ext-ShadowPool'>/**
19 </span> * @class Ext.ShadowPool
21 * Private utility class that manages the internal Shadow cache
24 Ext.define('Ext.ShadowPool', {
26 requires: ['Ext.core.DomHelper'],
29 if (Ext.supports.CSS3BoxShadow) {
30 return '<div class="' + Ext.baseCSSPrefix + 'css-shadow" role="presentation"></div>';
31 } else if (Ext.isIE) {
32 return '<div class="' + Ext.baseCSSPrefix + 'ie-shadow" role="presentation"></div>';
34 return '<div class="' + Ext.baseCSSPrefix + 'frame-shadow" role="presentation">' +
35 '<div class="xst" role="presentation">' +
36 '<div class="xstl" role="presentation"></div>' +
37 '<div class="xstc" role="presentation"></div>' +
38 '<div class="xstr" role="presentation"></div>' +
40 '<div class="xsc" role="presentation">' +
41 '<div class="xsml" role="presentation"></div>' +
42 '<div class="xsmc" role="presentation"></div>' +
43 '<div class="xsmr" role="presentation"></div>' +
45 '<div class="xsb" role="presentation">' +
46 '<div class="xsbl" role="presentation"></div>' +
47 '<div class="xsbc" role="presentation"></div>' +
48 '<div class="xsbr" role="presentation"></div>' +
57 var sh = this.shadows.shift();
59 sh = Ext.get(Ext.core.DomHelper.insertHtml("beforeBegin", document.body.firstChild, this.markup));
60 sh.autoBoxAdjust = false;
66 this.shadows.push(sh);
70 Ext.Array.each(this.shadows, function(shadow) {