Skip to content

Commit 7c2e796

Browse files
committed
Reverted r695.
1 parent 8d04c35 commit 7c2e796

58 files changed

Lines changed: 1044 additions & 1044 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ui/effects.blind.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
55
* Dual licensed under the MIT (MIT-LICENSE.txt)
66
* and GPL (GPL-LICENSE.txt) licenses.
7-
*
7+
*
88
* http://docs.jquery.com/UI/Effects/Blind
99
*
1010
* Depends:
@@ -18,32 +18,32 @@ $.effects.blind = function(o) {
1818

1919
// Create element
2020
var el = $(this), props = ['position','top','left'];
21-
21+
2222
// Set options
2323
var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
2424
var direction = o.options.direction || 'vertical'; // Default direction
25-
25+
2626
// Adjust
2727
$.effects.save(el, props); el.show(); // Save & Show
2828
var wrapper = $.effects.createWrapper(el).css({overflow:'hidden'}); // Create Wrapper
2929
var ref = (direction == 'vertical') ? 'height' : 'width';
3030
var distance = (direction == 'vertical') ? wrapper.height() : wrapper.width();
3131
if(mode == 'show') wrapper.css(ref, 0); // Shift
32-
32+
3333
// Animation
3434
var animation = {};
3535
animation[ref] = mode == 'show' ? distance : 0;
36-
36+
3737
// Animate
3838
wrapper.animate(animation, o.duration, o.options.easing, function() {
3939
if(mode == 'hide') el.hide(); // Hide
4040
$.effects.restore(el, props); $.effects.removeWrapper(el); // Restore
4141
if(o.callback) o.callback.apply(el[0], arguments); // Callback
4242
el.dequeue();
4343
});
44-
44+
4545
});
46-
46+
4747
};
4848

4949
})(jQuery);

ui/effects.bounce.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
55
* Dual licensed under the MIT (MIT-LICENSE.txt)
66
* and GPL (GPL-LICENSE.txt) licenses.
7-
*
7+
*
88
* http://docs.jquery.com/UI/Effects/Bounce
99
*
1010
* Depends:
@@ -36,7 +36,7 @@ $.effects.bounce = function(o) {
3636
if (mode == 'show') el.css('opacity', 0).css(ref, motion == 'pos' ? -distance : distance); // Shift
3737
if (mode == 'hide') distance = distance / (times * 2);
3838
if (mode != 'hide') times--;
39-
39+
4040
// Animate
4141
if (mode == 'show') { // Show Bounce
4242
var animation = {opacity: 1};
@@ -72,7 +72,7 @@ $.effects.bounce = function(o) {
7272
el.queue('fx', function() { el.dequeue(); });
7373
el.dequeue();
7474
});
75-
75+
7676
};
7777

7878
})(jQuery);

ui/effects.clip.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
55
* Dual licensed under the MIT (MIT-LICENSE.txt)
66
* and GPL (GPL-LICENSE.txt) licenses.
7-
*
7+
*
88
* http://docs.jquery.com/UI/Effects/Clip
99
*
1010
* Depends:
@@ -18,11 +18,11 @@ $.effects.clip = function(o) {
1818

1919
// Create element
2020
var el = $(this), props = ['position','top','left','height','width'];
21-
21+
2222
// Set options
2323
var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
2424
var direction = o.options.direction || 'vertical'; // Default direction
25-
25+
2626
// Adjust
2727
$.effects.save(el, props); el.show(); // Save & Show
2828
var wrapper = $.effects.createWrapper(el).css({overflow:'hidden'}); // Create Wrapper
@@ -33,22 +33,22 @@ $.effects.clip = function(o) {
3333
};
3434
var distance = (direction == 'vertical') ? animate.height() : animate.width();
3535
if(mode == 'show') { animate.css(ref.size, 0); animate.css(ref.position, distance / 2); } // Shift
36-
36+
3737
// Animation
3838
var animation = {};
3939
animation[ref.size] = mode == 'show' ? distance : 0;
4040
animation[ref.position] = mode == 'show' ? 0 : distance / 2;
41-
41+
4242
// Animate
4343
animate.animate(animation, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() {
4444
if(mode == 'hide') el.hide(); // Hide
4545
$.effects.restore(el, props); $.effects.removeWrapper(el); // Restore
4646
if(o.callback) o.callback.apply(el[0], arguments); // Callback
4747
el.dequeue();
48-
}});
49-
48+
}});
49+
5050
});
51-
51+
5252
};
5353

5454
})(jQuery);

ui/effects.core.js

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
55
* Dual licensed under the MIT (MIT-LICENSE.txt)
66
* and GPL (GPL-LICENSE.txt) licenses.
7-
*
7+
*
88
* http://docs.jquery.com/UI/Effects/
99
*/
1010
;(function($) {
@@ -299,41 +299,41 @@ var colors = {
299299
yellow:[255,255,0],
300300
transparent: [255,255,255]
301301
};
302-
302+
303303
/*
304304
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
305305
*
306306
* Uses the built in easing capabilities added In jQuery 1.1
307307
* to offer multiple easing options
308308
*
309309
* TERMS OF USE - jQuery Easing
310-
*
311-
* Open source under the BSD License.
312-
*
310+
*
311+
* Open source under the BSD License.
312+
*
313313
* Copyright © 2008 George McGinley Smith
314314
* All rights reserved.
315-
*
316-
* Redistribution and use in source and binary forms, with or without modification,
315+
*
316+
* Redistribution and use in source and binary forms, with or without modification,
317317
* are permitted provided that the following conditions are met:
318-
*
319-
* Redistributions of source code must retain the above copyright notice, this list of
318+
*
319+
* Redistributions of source code must retain the above copyright notice, this list of
320320
* conditions and the following disclaimer.
321-
* Redistributions in binary form must reproduce the above copyright notice, this list
322-
* of conditions and the following disclaimer in the documentation and/or other materials
321+
* Redistributions in binary form must reproduce the above copyright notice, this list
322+
* of conditions and the following disclaimer in the documentation and/or other materials
323323
* provided with the distribution.
324-
*
325-
* Neither the name of the author nor the names of contributors may be used to endorse
324+
*
325+
* Neither the name of the author nor the names of contributors may be used to endorse
326326
* or promote products derived from this software without specific prior written permission.
327-
*
328-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
327+
*
328+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
329329
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
330330
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
331331
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
332332
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
333-
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
333+
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
334334
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
335-
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
336-
* OF THE POSSIBILITY OF SUCH DAMAGE.
335+
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
336+
* OF THE POSSIBILITY OF SUCH DAMAGE.
337337
*
338338
*/
339339

@@ -449,7 +449,7 @@ jQuery.extend( jQuery.easing,
449449
return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
450450
},
451451
easeInOutBack: function (x, t, b, c, d, s) {
452-
if (s == undefined) s = 1.70158;
452+
if (s == undefined) s = 1.70158;
453453
if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
454454
return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
455455
},
@@ -476,33 +476,33 @@ jQuery.extend( jQuery.easing,
476476
/*
477477
*
478478
* TERMS OF USE - EASING EQUATIONS
479-
*
480-
* Open source under the BSD License.
481-
*
479+
*
480+
* Open source under the BSD License.
481+
*
482482
* Copyright © 2001 Robert Penner
483483
* All rights reserved.
484-
*
485-
* Redistribution and use in source and binary forms, with or without modification,
484+
*
485+
* Redistribution and use in source and binary forms, with or without modification,
486486
* are permitted provided that the following conditions are met:
487-
*
488-
* Redistributions of source code must retain the above copyright notice, this list of
487+
*
488+
* Redistributions of source code must retain the above copyright notice, this list of
489489
* conditions and the following disclaimer.
490-
* Redistributions in binary form must reproduce the above copyright notice, this list
491-
* of conditions and the following disclaimer in the documentation and/or other materials
490+
* Redistributions in binary form must reproduce the above copyright notice, this list
491+
* of conditions and the following disclaimer in the documentation and/or other materials
492492
* provided with the distribution.
493-
*
494-
* Neither the name of the author nor the names of contributors may be used to endorse
493+
*
494+
* Neither the name of the author nor the names of contributors may be used to endorse
495495
* or promote products derived from this software without specific prior written permission.
496-
*
497-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
496+
*
497+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
498498
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
499499
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
500500
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
501501
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
502-
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
502+
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
503503
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
504-
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
505-
* OF THE POSSIBILITY OF SUCH DAMAGE.
504+
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
505+
* OF THE POSSIBILITY OF SUCH DAMAGE.
506506
*
507507
*/
508508

ui/effects.drop.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
55
* Dual licensed under the MIT (MIT-LICENSE.txt)
66
* and GPL (GPL-LICENSE.txt) licenses.
7-
*
7+
*
88
* http://docs.jquery.com/UI/Effects/Drop
99
*
1010
* Depends:
@@ -18,33 +18,33 @@ $.effects.drop = function(o) {
1818

1919
// Create element
2020
var el = $(this), props = ['position','top','left','opacity'];
21-
21+
2222
// Set options
2323
var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
2424
var direction = o.options.direction || 'left'; // Default Direction
25-
25+
2626
// Adjust
2727
$.effects.save(el, props); el.show(); // Save & Show
2828
$.effects.createWrapper(el); // Create Wrapper
2929
var ref = (direction == 'up' || direction == 'down') ? 'top' : 'left';
3030
var motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg';
3131
var distance = o.options.distance || (ref == 'top' ? el.outerHeight({margin:true}) / 2 : el.outerWidth({margin:true}) / 2);
3232
if (mode == 'show') el.css('opacity', 0).css(ref, motion == 'pos' ? -distance : distance); // Shift
33-
33+
3434
// Animation
3535
var animation = {opacity: mode == 'show' ? 1 : 0};
3636
animation[ref] = (mode == 'show' ? (motion == 'pos' ? '+=' : '-=') : (motion == 'pos' ? '-=' : '+=')) + distance;
37-
37+
3838
// Animate
3939
el.animate(animation, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() {
4040
if(mode == 'hide') el.hide(); // Hide
4141
$.effects.restore(el, props); $.effects.removeWrapper(el); // Restore
4242
if(o.callback) o.callback.apply(this, arguments); // Callback
4343
el.dequeue();
4444
}});
45-
45+
4646
});
47-
47+
4848
};
4949

5050
})(jQuery);

ui/effects.explode.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Copyright (c) 2008 Paul Bakaus (ui.jquery.com)
55
* Dual licensed under the MIT (MIT-LICENSE.txt)
66
* and GPL (GPL-LICENSE.txt) licenses.
7-
*
7+
*
88
* http://docs.jquery.com/UI/Effects/Explode
99
*
1010
* Depends:
@@ -18,15 +18,15 @@ $.effects.explode = function(o) {
1818

1919
var rows = o.options.pieces ? Math.round(Math.sqrt(o.options.pieces)) : 3;
2020
var cells = o.options.pieces ? Math.round(Math.sqrt(o.options.pieces)) : 3;
21-
21+
2222
o.options.mode = o.options.mode == 'toggle' ? ($(this).is(':visible') ? 'hide' : 'show') : o.options.mode;
2323
var el = $(this).show().css('visibility', 'hidden');
2424
var offset = el.offset();
25-
25+
2626
//Substract the margins - not fixing the problem yet.
2727
offset.top -= parseInt(el.css("marginTop")) || 0;
2828
offset.left -= parseInt(el.css("marginLeft")) || 0;
29-
29+
3030
var width = el.outerWidth(true);
3131
var height = el.outerHeight(true);
3232

@@ -62,18 +62,18 @@ $.effects.explode = function(o) {
6262

6363
// Set a timeout, to call the callback approx. when the other animations have finished
6464
setTimeout(function() {
65-
65+
6666
o.options.mode == 'show' ? el.css({ visibility: 'visible' }) : el.css({ visibility: 'visible' }).hide();
6767
if(o.callback) o.callback.apply(el[0]); // Callback
6868
el.dequeue();
69-
69+
7070
$('.effects-explode').remove();
71-
71+
7272
}, o.duration || 500);
73-
74-
73+
74+
7575
});
76-
76+
7777
};
7878

7979
})(jQuery);

0 commit comments

Comments
 (0)