mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Blind effect: Moved regexes into effect definition.
This commit is contained in:
parent
d0002569d3
commit
3317ec8990
6
ui/jquery.ui.effect-blind.js
vendored
6
ui/jquery.ui.effect-blind.js
vendored
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user