From 0c87cf400bdcfc3c1ab1c6128525c25664d3f623 Mon Sep 17 00:00:00 2001 From: Chi Cheng Date: Fri, 16 Jan 2009 16:53:46 +0000 Subject: effects: fix #3857 --- ui/effects.core.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ui') diff --git a/ui/effects.core.js b/ui/effects.core.js index cefc47667..2fd660b45 100644 --- a/ui/effects.core.js +++ b/ui/effects.core.js @@ -182,7 +182,7 @@ $.fn.extend({ return speed ? $.effects.animateClass.apply(this, [{ remove: classNames },speed,easing,callback]) : this._removeClass(classNames); }, toggleClass: function(classNames,speed,easing,callback) { - return speed ? $.effects.animateClass.apply(this, [{ toggle: classNames },speed,easing,callback]) : this._toggleClass(classNames); + 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) { return $.effects.animateClass.apply(this, [{ add: add, remove: remove },speed,easing,callback]); @@ -337,7 +337,7 @@ var colors = { * * Open source under the BSD License. * - * Copyright © 2008 George McGinley Smith + * Copyright ?2008 George McGinley Smith * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, @@ -506,7 +506,7 @@ $.extend($.easing, * * Open source under the BSD License. * - * Copyright © 2001 Robert Penner + * Copyright ?2001 Robert Penner * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, -- cgit v1.2.3