-jQuery.fn.extend({
-
- // overwrite the old show method
- _show: jQuery.fn.show,
-
- /**
- * Show all matched elements using a graceful animation.
- * The height, width, and opacity of each of the matched elements
- * are changed dynamically according to the specified speed.
- *
- * @example $("p").show("slow");
- *
- * @name show
- * @type jQuery
- * @param Object speed A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).
- * @cat Effects/Animations
- */
-
- /**
- * Show all matched elements using a graceful animation and firing a callback
- * function after completion.
- * The height, width, and opacity of each of the matched elements
- * are changed dynamically according to the specified speed.
- *
- * @example $("p").show("slow",function(){
- * alert("Animation Done.");
- * });
- *
- * @name show
- * @type jQuery
- * @param Object speed A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).
- * @param Function callback A function to be executed whenever the animation completes.
- * @cat Effects/Animations
- */
- show: function(speed,callback){
- return speed ? this.animate({
- height: "show", width: "show", opacity: "show"
- }, speed, callback) : this._show();
- },
-
- // Overwrite the old hide method
- _hide: jQuery.fn.hide,
-
- /**
- * Hide all matched elements using a graceful animation.
- * The height, width, and opacity of each of the matched elements
- * are changed dynamically according to the specified speed.
- *
- * @example $("p").hide("slow");
- *
- * @name hide
- * @type jQuery
- * @param Object speed A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).
- * @cat Effects/Animations
- */
-
- /**
- * Hide all matched elements using a graceful animation and firing a callback
- * function after completion.
- * The height, width, and opacity of each of the matched elements
- * are changed dynamically according to the specified speed.
- *
- * @example $("p").hide("slow",function(){
- * alert("Animation Done.");
- * });
- *
- * @name hide
- * @type jQuery
- * @param Object speed A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).
- * @param Function callback A function to be executed whenever the animation completes.
- * @cat Effects/Animations
- */
- hide: function(speed,callback){
- return speed ? this.animate({
- height: "hide", width: "hide", opacity: "hide"
- }, speed, callback) : this._hide();
- },
-
- /**
- * Reveal all matched elements by adjusting their height.
- * Only the height is adjusted for this animation, causing all matched
- * elements to be revealed in a "sliding" manner.
- *
- * @example $("p").slideDown("slow");
- *
- * @name slideDown
- * @type jQuery
- * @param Object speed A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).
- * @cat Effects/Animations
- */
-
- /**
- * Reveal all matched elements by adjusting their height and firing a callback
- * function after completion.
- * Only the height is adjusted for this animation, causing all matched
- * elements to be revealed in a "sliding" manner.
- *
- * @example $("p").slideDown("slow",function(){
- * alert("Animation Done.");
- * });
- *
- * @name slideDown
- * @type jQuery
- * @param Object speed A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).
- * @param Function callback A function to be executed whenever the animation completes.
- * @cat Effects/Animations
- */
- slideDown: function(speed,callback){
- return this.animate({height: "show"}, speed, callback);
- },
-
- /**
- * Hide all matched elements by adjusting their height.
- * Only the height is adjusted for this animation, causing all matched
- * elements to be hidden in a "sliding" manner.
- *
- * @example $("p").slideUp("slow");
- *
- * @name slideUp
- * @type jQuery
- * @param Object speed A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).
- * @cat Effects/Animations
- */
-
- /**
- * Hide all matched elements by adjusting their height and firing a callback
- * function after completion.
- * Only the height is adjusted for this animation, causing all matched
- * elements to be hidden in a "sliding" manner.
- *
- * @example $("p").slideUp("slow",function(){
- * alert("Animation Done.");
- * });
- *
- * @name slideUp
- * @type jQuery
- * @param Object speed A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).
- * @param Function callback A function to be executed whenever the animation completes.
- * @cat Effects/Animations
- */
- slideUp: function(speed,callback){
- return this.animate({height: "hide"}, speed, callback);
- },
-
- /**
- * Toggle the visibility of all matched elements by adjusting their height.
- * Only the height is adjusted for this animation, causing all matched
- * elements to be hidden in a "sliding" manner.
- *
- * @example $("p").slideToggle("slow");
- *
- * @name slideToggle
- * @type jQuery
- * @param Object speed A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).
- * @cat Effects/Animations
- */
-
- /**
- * Toggle the visibility of all matched elements by adjusting their height
- * and firing a callback function after completion.
- * Only the height is adjusted for this animation, causing all matched
- * elements to be hidden in a "sliding" manner.
- *
- * @example $("p").slideToggle("slow",function(){
- * alert("Animation Done.");
- * });
- *
- * @name slideToggle
- * @type jQuery
- * @param Object speed A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).
- * @param Function callback A function to be executed whenever the animation completes.
- * @cat Effects/Animations
- */
- slideToggle: function(speed,callback){
- return this.each(function(){
- var state = jQuery(this).is(":hidden") ? "show" : "hide";
- jQuery(this).animate({height: state}, speed, callback);
- });
- },
-
- /**
- * Fade in all matched elements by adjusting their opacity.
- * Only the opacity is adjusted for this animation, meaning that
- * all of the matched elements should already have some form of height
- * and width associated with them.
- *
- * @example $("p").fadeIn("slow");
- *
- * @name fadeIn
- * @type jQuery
- * @param Object speed A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).
- * @cat Effects/Animations
- */
-
- /**
- * Fade in all matched elements by adjusting their opacity and firing a
- * callback function after completion.
- * Only the opacity is adjusted for this animation, meaning that
- * all of the matched elements should already have some form of height
- * and width associated with them.
- *
- * @example $("p").fadeIn("slow",function(){
- * alert("Animation Done.");
- * });
- *
- * @name fadeIn
- * @type jQuery
- * @param Object speed A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).
- * @param Function callback A function to be executed whenever the animation completes.
- * @cat Effects/Animations
- */
- fadeIn: function(speed,callback){
- return this.animate({opacity: "show"}, speed, callback);
- },
-
- /**
- * Fade out all matched elements by adjusting their opacity.
- * Only the opacity is adjusted for this animation, meaning that
- * all of the matched elements should already have some form of height
- * and width associated with them.
- *
- * @example $("p").fadeOut("slow");
- *
- * @name fadeOut
- * @type jQuery
- * @param Object speed A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).
- * @cat Effects/Animations
- */
-
- /**
- * Fade out all matched elements by adjusting their opacity and firing a
- * callback function after completion.
- * Only the opacity is adjusted for this animation, meaning that
- * all of the matched elements should already have some form of height
- * and width associated with them.
- *
- * @example $("p").fadeOut("slow",function(){
- * alert("Animation Done.");
- * });
- *
- * @name fadeOut
- * @type jQuery
- * @param Object speed A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).
- * @param Function callback A function to be executed whenever the animation completes.
- * @cat Effects/Animations
- */
- fadeOut: function(speed,callback){
- return this.animate({opacity: "hide"}, speed, callback);
- },
-
- /**
- * Fade the opacity of all matched elements to a specified opacity.
- * Only the opacity is adjusted for this animation, meaning that
- * all of the matched elements should already have some form of height
- * and width associated with them.
- *
- * @example $("p").fadeTo("slow", 0.5);
- *
- * @name fadeTo
- * @type jQuery
- * @param Object speed A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).
- * @param Number opacity The opacity to fade to (a number from 0 to 1).
- * @cat Effects/Animations
- */
-
- /**
- * Fade the opacity of all matched elements to a specified opacity and
- * firing a callback function after completion.
- * Only the opacity is adjusted for this animation, meaning that
- * all of the matched elements should already have some form of height
- * and width associated with them.
- *
- * @example $("p").fadeTo("slow", 0.5, function(){
- * alert("Animation Done.");
- * });
- *
- * @name fadeTo
- * @type jQuery
- * @param Object speed A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).
- * @param Number opacity The opacity to fade to (a number from 0 to 1).
- * @param Function callback A function to be executed whenever the animation completes.
- * @cat Effects/Animations
- */
- fadeTo: function(speed,to,callback){
- return this.animate({opacity: to}, speed, callback);
- },
-
- /**
- * A function for making your own, custom, animations. The key aspect of
- * this function is the object of style properties that will be animated,
- * and to what end. Each key within the object represents a style property
- * that will also be animated (for example: "height", "top", or "opacity").
- *
- * The value associated with the key represents to what end the property
- * will be animated. If a number is provided as the value, then the style
- * property will be transitioned from its current state to that new number.
- * Oterwise if the string "hide", "show", or "toggle" is provided, a default
- * animation will be constructed for that property.
- *
- * @example $("p").animate({
- * height: 'toggle', opacity: 'toggle'
- * }, "slow");
- *
- * @example $("p").animate({
- * left: 50, opacity: 'show'
- * }, 500);
- *
- * @name animate
- * @type jQuery
- * @param Hash params A set of style attributes that you wish to animate, and to what end.
- * @param Object speed A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).
- * @param Function callback A function to be executed whenever the animation completes.
- * @cat Effects/Animations
- */
- animate: function(prop,speed,callback) {
- return this.queue(function(){
-
- this.curAnim = prop;
-
- for ( var p in prop ) {
- var e = new jQuery.fx( this, jQuery.speed(speed,callback), p );
- if ( prop[p].constructor == Number )
- e.custom( e.cur(), prop[p] );
- else
- e[ prop[p] ]( prop );
- }
-
- });
- },
-
- /**
- *
- * @private
- */
- queue: function(type,fn){
- if ( !fn ) {
- fn = type;
- type = "fx";
- }
-
- return this.each(function(){
- if ( !this.queue )
- this.queue = {};
-
- if ( !this.queue[type] )
- this.queue[type] = [];
-
- this.queue[type].push( fn );
-
- if ( this.queue[type].length == 1 )
- fn.apply(this);
- });
- }
-
-});
-
-jQuery.extend({
-
- setAuto: function(e,p) {
- if ( e.notAuto ) return;
-
- if ( p == "height" && e.scrollHeight != parseInt(jQuery.curCSS(e,p)) ) return;
- if ( p == "width" && e.scrollWidth != parseInt(jQuery.curCSS(e,p)) ) return;
-
- // Remember the original height
- var a = e.style[p];
-
- // Figure out the size of the height right now
- var o = jQuery.curCSS(e,p,1);
-
- if ( p == "height" && e.scrollHeight != o ||
- p == "width" && e.scrollWidth != o ) return;
-
- // Set the height to auto
- e.style[p] = e.currentStyle ? "" : "auto";
-
- // See what the size of "auto" is
- var n = jQuery.curCSS(e,p,1);
-
- // Revert back to the original size
- if ( o != n && n != "auto" ) {
- e.style[p] = a;
- e.notAuto = true;
- }
- },
-
- speed: function(s,o) {
- o = o || {};
-
- if ( o.constructor == Function )
- o = { complete: o };
-
- var ss = { slow: 600, fast: 200 };
- o.duration = (s && s.constructor == Number ? s : ss[s]) || 400;
-
- // Queueing
- o.oldComplete = o.complete;
- o.complete = function(){
- jQuery.dequeue(this, "fx");
- if ( o.oldComplete && o.oldComplete.constructor == Function )
- o.oldComplete.apply( this );
+jQuery.fn.extend({\r
+\r
+ // overwrite the old show method\r
+ _show: jQuery.fn.show,\r
+ \r
+ /**\r
+ * Show all matched elements using a graceful animation and firing an\r
+ * optional callback after completion.\r
+ *\r
+ * The height, width, and opacity of each of the matched elements \r
+ * are changed dynamically according to the specified speed.\r
+ *\r
+ * @example $("p").show("slow");\r
+ *\r
+ * @example $("p").show("slow",function(){\r
+ * alert("Animation Done.");\r
+ * });\r
+ *\r
+ * @name show\r
+ * @type jQuery\r
+ * @param String|Number speed A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).\r
+ * @param Function callback (optional) A function to be executed whenever the animation completes.\r
+ * @param String easing (optional) easing effect\r
+ * @cat Effects\r
+ * @see hide(String|Number,Function)\r
+ */\r
+ show: function(speed,callback){\r
+ return speed ? this.animate({\r
+ height: "show", width: "show", opacity: "show"\r
+ }, speed, callback) : this._show();\r
+ },\r
+ \r
+ // Overwrite the old hide method\r
+ _hide: jQuery.fn.hide,\r
+ \r
+ /**\r
+ * Hide all matched elements using a graceful animation and firing an\r
+ * optional callback after completion.\r
+ *\r
+ * The height, width, and opacity of each of the matched elements \r
+ * are changed dynamically according to the specified speed.\r
+ *\r
+ * @example $("p").hide("slow");\r
+ *\r
+ * @example $("p").hide("slow",function(){\r
+ * alert("Animation Done.");\r
+ * });\r
+ *\r
+ * @name hide\r
+ * @type jQuery\r
+ * @param String|Number speed A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).\r
+ * @param Function callback (optional) A function to be executed whenever the animation completes.\r
+ * @param String easing (optional) easing effect\r
+ * @cat Effects\r
+ * @see show(String|Number,Function)\r
+ */\r
+ hide: function(speed,callback){\r
+ return speed ? this.animate({\r
+ height: "hide", width: "hide", opacity: "hide"\r
+ }, speed, callback) : this._hide();\r
+ },\r
+ \r
+ /**\r
+ * Reveal all matched elements by adjusting their height and firing an\r
+ * optional callback after completion.\r
+ *\r
+ * Only the height is adjusted for this animation, causing all matched\r
+ * elements to be revealed in a "sliding" manner.\r
+ *\r
+ * @example $("p").slideDown("slow");\r
+ *\r
+ * @example $("p").slideDown("slow",function(){\r
+ * alert("Animation Done.");\r
+ * });\r
+ *\r
+ * @name slideDown\r
+ * @type jQuery\r
+ * @param String|Number speed (optional) A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).\r
+ * @param Function callback (optional) A function to be executed whenever the animation completes.\r
+ * @param String easing (optional) easing effect\r
+ * @cat Effects\r
+ * @see slideUp(String|Number,Function)\r
+ * @see slideToggle(String|Number,Function)\r
+ */\r
+ slideDown: function(speed,callback){\r
+ return this.animate({height: "show"}, speed, callback);\r
+ },\r
+ \r
+ /**\r
+ * Hide all matched elements by adjusting their height and firing an\r
+ * optional callback after completion.\r
+ *\r
+ * Only the height is adjusted for this animation, causing all matched\r
+ * elements to be hidden in a "sliding" manner.\r
+ *\r
+ * @example $("p").slideUp("slow");\r
+ *\r
+ * @example $("p").slideUp("slow",function(){\r
+ * alert("Animation Done.");\r
+ * });\r
+ *\r
+ * @name slideUp\r
+ * @type jQuery\r
+ * @param String|Number speed (optional) A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).\r
+ * @param Function callback (optional) A function to be executed whenever the animation completes.\r
+ * @param String easing (optional) easing effect\r
+ * @cat Effects\r
+ * @see slideDown(String|Number,Function)\r
+ * @see slideToggle(String|Number,Function)\r
+ */\r
+ slideUp: function(speed,callback){\r
+ return this.animate({height: "hide"}, speed, callback);\r
+ },\r
+\r
+ /**\r
+ * Toggle the visibility of all matched elements by adjusting their height and firing an\r
+ * optional callback after completion.\r
+ *\r
+ * Only the height is adjusted for this animation, causing all matched\r
+ * elements to be hidden in a "sliding" manner.\r
+ *\r
+ * @example $("p").slideToggle("slow");\r
+ *\r
+ * @example $("p").slideToggle("slow",function(){\r
+ * alert("Animation Done.");\r
+ * });\r
+ *\r
+ * @name slideToggle\r
+ * @type jQuery\r
+ * @param String|Number speed (optional) A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).\r
+ * @param Function callback (optional) A function to be executed whenever the animation completes.\r
+ * @param String easing (optional) easing effect\r
+ * @cat Effects\r
+ * @see slideDown(String|Number,Function)\r
+ * @see slideUp(String|Number,Function)\r
+ */\r
+ slideToggle: function(speed, callback){\r
+ return this.each(function(){\r
+ var state = jQuery(this).is(":hidden") ? "show" : "hide";\r
+ jQuery(this).animate({height: state}, speed, callback);\r
+ });\r
+ },\r
+ \r
+ /**\r
+ * Fade in all matched elements by adjusting their opacity and firing an\r
+ * optional callback after completion.\r
+ *\r
+ * Only the opacity is adjusted for this animation, meaning that\r
+ * all of the matched elements should already have some form of height\r
+ * and width associated with them.\r
+ *\r
+ * @example $("p").fadeIn("slow");\r
+ *\r
+ * @example $("p").fadeIn("slow",function(){\r
+ * alert("Animation Done.");\r
+ * });\r
+ *\r
+ * @name fadeIn\r
+ * @type jQuery\r
+ * @param String|Number speed (optional) A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).\r
+ * @param Function callback (optional) A function to be executed whenever the animation completes.\r
+ * @param String easing (optional) easing effect\r
+ * @cat Effects\r
+ * @see fadeOut(String|Number,Function)\r
+ * @see fadeTo(String|Number,Number,Function)\r
+ */\r
+ fadeIn: function(speed, callback){\r
+ return this.animate({opacity: "show"}, speed, callback);\r
+ },\r
+ \r
+ /**\r
+ * Fade out all matched elements by adjusting their opacity and firing an\r
+ * optional callback after completion.\r
+ *\r
+ * Only the opacity is adjusted for this animation, meaning that\r
+ * all of the matched elements should already have some form of height\r
+ * and width associated with them.\r
+ *\r
+ * @example $("p").fadeOut("slow");\r
+ *\r
+ * @example $("p").fadeOut("slow",function(){\r
+ * alert("Animation Done.");\r
+ * });\r
+ *\r
+ * @name fadeOut\r
+ * @type jQuery\r
+ * @param String|Number speed (optional) A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).\r
+ * @param Function callback (optional) A function to be executed whenever the animation completes.\r
+ * @param String easing (optional) easing effect\r
+ * @cat Effects\r
+ * @see fadeIn(String|Number,Function)\r
+ * @see fadeTo(String|Number,Number,Function)\r
+ */\r
+ fadeOut: function(speed, callback){\r
+ return this.animate({opacity: "hide"}, speed, callback);\r
+ },\r
+ \r
+ /**\r
+ * Fade the opacity of all matched elements to a specified opacity and firing an\r
+ * optional callback after completion.\r
+ *\r
+ * Only the opacity is adjusted for this animation, meaning that\r
+ * all of the matched elements should already have some form of height\r
+ * and width associated with them.\r
+ *\r
+ * @example $("p").fadeTo("slow", 0.5);\r
+ *\r
+ * @example $("p").fadeTo("slow", 0.5, function(){\r
+ * alert("Animation Done.");\r
+ * });\r
+ *\r
+ * @name fadeTo\r
+ * @type jQuery\r
+ * @param String|Number speed A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).\r
+ * @param Number opacity The opacity to fade to (a number from 0 to 1).\r
+ * @param Function callback (optional) A function to be executed whenever the animation completes.\r
+ * @param String easing (optional) easing effect\r
+ * @cat Effects\r
+ * @see fadeIn(String|Number,Function)\r
+ * @see fadeOut(String|Number,Function)\r
+ */\r
+ fadeTo: function(speed,to,callback){\r
+ return this.animate({opacity: to}, speed, callback);\r
+ },\r
+ \r
+ /**\r
+ * A function for making your own, custom, animations. The key aspect of\r
+ * this function is the object of style properties that will be animated,\r
+ * and to what end. Each key within the object represents a style property\r
+ * that will also be animated (for example: "height", "top", or "opacity").\r
+ *\r
+ * The value associated with the key represents to what end the property\r
+ * will be animated. If a number is provided as the value, then the style\r
+ * property will be transitioned from its current state to that new number.\r
+ * Oterwise if the string "hide", "show", or "toggle" is provided, a default\r
+ * animation will be constructed for that property.\r
+ *\r
+ * @example $("p").animate({\r
+ * height: 'toggle', opacity: 'toggle'\r
+ * }, "slow");\r
+ *\r
+ * @example $("p").animate({\r
+ * left: 50, opacity: 'show'\r
+ * }, 500);\r
+ *\r
+ * @name animate\r
+ * @type jQuery\r
+ * @param Hash params A set of style attributes that you wish to animate, and to what end.\r
+ * @param String|Number speed (optional) A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).\r
+ * @param Function callback (optional) A function to be executed whenever the animation completes.\r
+ * @param String easing (optional) easing effect\r
+ * @cat Effects\r
+ */\r
+ animate: function( prop, speed, easing, callback ) {\r
+ return this.queue(function(){\r
+ \r
+ this.curAnim = jQuery.extend({}, prop);
+ var opt = jQuery.speed(speed, easing, callback);\r
+ \r
+ for ( var p in prop ) {\r
+ var e = new jQuery.fx( this, opt, p );\r
+ if ( prop[p].constructor == Number )\r
+ e.custom( e.cur(), prop[p] );\r
+ else\r
+ e[ prop[p] ]( prop );\r
+ }\r
+ \r
+ });\r
+ },\r
+ \r
+ /**\r
+ *\r
+ * @private\r
+ */\r
+ queue: function(type,fn){\r
+ if ( !fn ) {\r
+ fn = type;\r
+ type = "fx";\r
+ }\r
+ \r
+ return this.each(function(){\r
+ if ( !this.queue )\r
+ this.queue = {};\r
+ \r
+ if ( !this.queue[type] )\r
+ this.queue[type] = [];\r
+ \r
+ this.queue[type].push( fn );\r
+ \r
+ if ( this.queue[type].length == 1 )\r
+ fn.apply(this);\r
+ });\r
+ }\r
+\r
+});\r
+\r
+jQuery.extend({\r
+ \r
+ speed: function(speed, easing, fn) {\r
+ var opt = speed.constructor == Object ? speed : {
+ complete: fn || !fn && easing ||
+ speed.constructor == Function && speed,
+ duration: speed,
+ easing: fn && easing || easing && easing.constructor != Function && easing