X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6a7e4474cba9d8be4b2ec445e10f1691f7277c50..530ef4b6c5b943cfa68b779d11cf7de29aa878bf:/src/ext-core/src/core/Element.fx.js diff --git a/src/ext-core/src/core/Element.fx.js b/src/ext-core/src/core/Element.fx.js index 431c17fd..7821b88e 100644 --- a/src/ext-core/src/core/Element.fx.js +++ b/src/ext-core/src/core/Element.fx.js @@ -1,5 +1,5 @@ /*! - * Ext JS Library 3.2.0 + * Ext JS Library 3.2.1 * Copyright(c) 2006-2010 Ext JS, Inc. * licensing@extjs.com * http://www.extjs.com/license @@ -215,7 +215,7 @@ el.animate( // private legacy anim prep preanim : function(a, i){ - return !a[i] ? false : (Ext.isObject(a[i]) ? a[i]: {duration: a[i+1], callback: a[i+2], easing: a[i+3]}); + return !a[i] ? false : (typeof a[i] == 'object' ? a[i]: {duration: a[i+1], callback: a[i+2], easing: a[i+3]}); }, /** @@ -238,7 +238,7 @@ el.animate( dom = me.dom; // hideMode string override - if (Ext.isString(animate)){ + if (typeof animate == 'string'){ isDisplay = animate == DISPLAY; isVisible = animate == VISIBILITY; isOffsets = animate == OFFSETS; @@ -331,7 +331,7 @@ el.animate( */ hide : function(animate){ // hideMode override - if (Ext.isString(animate)){ + if (typeof animate == 'string'){ this.setVisible(false, animate); return this; } @@ -346,7 +346,7 @@ el.animate( */ show : function(animate){ // hideMode override - if (Ext.isString(animate)){ + if (typeof animate == 'string'){ this.setVisible(true, animate); return this; } @@ -354,4 +354,4 @@ el.animate( return this; } }; -}()); \ No newline at end of file +}());