-<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
- */
-(function(){ \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">(function(){ \r
var EXTLIB = Ext.lib,\r
noNegatives = /width|height|opacity|padding/i,\r
offsetAttribute = /^((width|height)|(top|left))$/,\r
}else if(isset(by)) {\r
if (Ext.isArray(start)){\r
end = [];\r
- Ext.each(start, function(v, i){\r
- end[i] = v + by[i];\r
- });\r
+ for(var i=0,len=start.length; i<len; i++) {\r
+ end[i] = start[i] + by[i];\r
+ }\r
}else{\r
end = start + by;\r
}\r
},\r
\r
run: function(){\r
- var tf;\r
- Ext.each(queue, function(tween){\r
+ var tf, i, len, tween;\r
+ for(i = 0, len = queue.length; i<len; i++) {\r
+ tween = queue[i];\r
if(tween && tween.isAnimated){\r
tf = tween.totalFrames;\r
if(tween.curFrame < tf || tf === null){\r
}else{\r
me.stop(tween);\r
}\r
- }\r
- }, me);\r
+ } \r
+ }\r
}\r
});\r
\r
var getIndex = function(anim) {\r
- var out = -1;\r
- Ext.each(queue, function(item, idx){\r
- if(item == anim){\r
- out = idx;\r
- return false;\r
+ var i, len;\r
+ for(i = 0, len = queue.length; i<len; i++) {\r
+ if(queue[i] === anim) {\r
+ return i;\r
}\r
- });\r
- return out;\r
+ }\r
+ return -1;\r
};\r
\r
-\r
var correctFrame = function(tween) {\r
var frames = tween.totalFrames,\r
frame = tween.curFrame,\r
return [val[0] - pageXY[0] + start[0], val[1] - pageXY[1] + start[1]];\r
};\r
})();\r
-})();</pre>
-</body>
+})();</pre> \r
+</body>\r
</html>
\ No newline at end of file