Upgrade to ExtJS 3.1.1 - Released 02/08/2010
[extjs.git] / docs / source / ext-base-anim-extra.html
index b25662c..e09cc0f 100644 (file)
@@ -1,5 +1,6 @@
 <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
            if (s.length == 3) {\r
             return s;\r
         }\r
-        \r
+               \r
         Ext.each([hexRE, rgbRE, hex3RE], function(re, idx){\r
             base = (idx % 2 == 0) ? 16 : 10;\r
             c = re.exec(s);\r
         doMethod : function(attr, start, end) {\r
             var me = this,\r
                val,\r
-               floor = Math.floor;            \r
+               floor = Math.floor,\r
+                               i, \r
+                len,\r
+                v;            \r
 \r
             if(colorRE.test(attr)){\r
                 val = [];\r
-             \r
-                   Ext.each(start, function(v, i) {\r
-                    val[i] = superclass.doMethod.call(me, attr, v, end[i]);\r
-                });\r
-\r
+                               \r
+                               for(i = 0, len = start.length; i < len; i++) {\r
+                                       v = start[i];\r
+                                       val[i] = superclass.doMethod.call(me, attr, v, end[i]);\r
+                               }\r
                 val = 'rgb(' + floor(val[0]) + ',' + floor(val[1]) + ',' + floor(val[2]) + ')';\r
             }else{\r
                 val = superclass.doMethod.call(me, attr, start, end);\r
 \r
                 if(!isset(to) && isset(by)){\r
                     end = parseColor(by);\r
-                    Ext.each(start, function(item, i){\r
-                        end[i] = item + end[i];\r
-                    });\r
+                                       for(var i=0,len=start.length; i<len; i++) {\r
+                                               end[i] = start[i] + end[i];\r
+                                       }\r
                 }\r
                 ra.start = start;\r
                 ra.end = end;\r