Upgrade to ExtJS 3.1.0 - Released 12/16/2009
[extjs.git] / docs / source / ext-base-anim.html
index 452e04d..d721fdd 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
             }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