aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2013-09-17 09:36:04 -0400
committerScott González <scott.gonzalez@gmail.com>2013-10-24 09:19:41 -0400
commit3317ec89907bceeeb4c10d7bea9d50b06c560f84 (patch)
tree09749423fa7afd675b15887fd6eb267e1d5cc353 /ui
parentd0002569d381dba6e8cf84de280d093e0a9566ec (diff)
downloadjquery-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.js6
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);