Effects core: Removed jQuery.fn.morph (same as jQuery.fn.switchClass). Fixed #4602 (Remove jQuery.fn.morph).

This commit is contained in:
Scott González 2009-06-15 02:18:47 +00:00
parent 2f161c13de
commit 25398447f1

View File

@ -219,12 +219,9 @@ $.fn.extend({
return ( (typeof speed !== "boolean") && speed ) ? $.effects.animateClass.apply(this, [{ toggle: classNames },speed,easing,callback]) : this._toggleClass(classNames, speed); return ( (typeof speed !== "boolean") && speed ) ? $.effects.animateClass.apply(this, [{ toggle: classNames },speed,easing,callback]) : this._toggleClass(classNames, speed);
}, },
morph: function(remove,add,speed,easing,callback) { switchClass: function(remove,add,speed,easing,callback) {
return $.effects.animateClass.apply(this, [{ add: add, remove: remove },speed,easing,callback]); return $.effects.animateClass.apply(this, [{ add: add, remove: remove },speed,easing,callback]);
}, },
switchClass: function() {
return this.morph.apply(this, arguments);
},
// helper functions // helper functions
cssUnit: function(key) { cssUnit: function(key) {