Blind effect: Moved regexes into effect definition.

This commit is contained in:
Scott González 2013-09-17 09:36:04 -04:00
parent d0002569d3
commit 3317ec8990

View File

@ -13,12 +13,11 @@
*/
(function( $, undefined ) {
var rvertical = /up|down|vertical/,
rpositivemotion = /up|left|vertical|horizontal/;
$.effects.effect.blind = function( o, done ) {
// Create element
var el = $( this ),
rvertical = /up|down|vertical/,
rpositivemotion = /up|left|vertical|horizontal/,
props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
mode = $.effects.setMode( el, o.mode || "hide" ),
direction = o.direction || "up",
@ -76,7 +75,6 @@ $.effects.effect.blind = function( o, done ) {
done();
}
});
};
})(jQuery);