diff options
author | Scott González <scott.gonzalez@gmail.com> | 2013-09-17 09:36:04 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2013-10-24 09:19:41 -0400 |
commit | 3317ec89907bceeeb4c10d7bea9d50b06c560f84 (patch) | |
tree | 09749423fa7afd675b15887fd6eb267e1d5cc353 /ui | |
parent | d0002569d381dba6e8cf84de280d093e0a9566ec (diff) | |
download | jquery-ui-3317ec89907bceeeb4c10d7bea9d50b06c560f84.tar.gz jquery-ui-3317ec89907bceeeb4c10d7bea9d50b06c560f84.zip |
Blind effect: Moved regexes into effect definition.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.effect-blind.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ui/jquery.ui.effect-blind.js b/ui/jquery.ui.effect-blind.js index f97de7413..e6f4b8a4c 100644 --- a/ui/jquery.ui.effect-blind.js +++ b/ui/jquery.ui.effect-blind.js @@ -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); |