diff options
author | Chi Cheng <cloudream@gmail.com> | 2009-01-16 16:53:46 +0000 |
---|---|---|
committer | Chi Cheng <cloudream@gmail.com> | 2009-01-16 16:53:46 +0000 |
commit | 0c87cf400bdcfc3c1ab1c6128525c25664d3f623 (patch) | |
tree | 757f42ff4e549f7b04570aab9afa9adf53173842 /ui/effects.core.js | |
parent | 57c1900c9695b588ecc71915c5ec524cc209e892 (diff) | |
download | jquery-ui-0c87cf400bdcfc3c1ab1c6128525c25664d3f623.tar.gz jquery-ui-0c87cf400bdcfc3c1ab1c6128525c25664d3f623.zip |
effects: fix #3857
Diffstat (limited to 'ui/effects.core.js')
-rw-r--r-- | ui/effects.core.js | 6 |
1 files changed, 3 insertions, 3 deletions
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, |