Skip to content

Commit cb8474a

Browse files
committed
Remove trailing whitespace.
1 parent 55e1369 commit cb8474a

7 files changed

+73
-74
lines changed

grunt.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,7 @@ grunt.initConfig({
306306
smarttabs: true,
307307
// TODO: use "faux strict mode" https://github.com/jshint/jshint/issues/504
308308
// strict: true,
309-
// TODO: enable trailing
310-
// trailing: true,
309+
trailing: true,
311310
undef: true
312311
};
313312

ui/jquery.effects.bounce.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
(function( $, undefined ) {
1414

1515
$.effects.effect.bounce = function( o, done ) {
16-
var el = $( this ),
16+
var el = $( this ),
1717
props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
1818

1919
// defaults:
2020
mode = $.effects.setMode( el, o.mode || "effect" ),
2121
hide = mode === "hide",
2222
show = mode === "show",
23-
direction = o.direction || "up",
23+
direction = o.direction || "up",
2424
distance = o.distance,
2525
times = o.times || 5,
2626

@@ -31,7 +31,7 @@ $.effects.effect.bounce = function( o, done ) {
3131

3232
// utility:
3333
ref = ( direction === "up" || direction === "down" ) ? "top" : "left",
34-
motion = ( direction === "up" || direction === "left" ),
34+
motion = ( direction === "up" || direction === "left" ),
3535
i,
3636
upAnim,
3737
downAnim,
@@ -40,13 +40,13 @@ $.effects.effect.bounce = function( o, done ) {
4040
queue = el.queue(),
4141
queuelen = queue.length;
4242

43-
// Avoid touching opacity to prevent clearType and PNG issues in IE
43+
// Avoid touching opacity to prevent clearType and PNG issues in IE
4444
if ( show || hide ) {
4545
props.push( "opacity" );
46-
}
46+
}
4747

48-
$.effects.save( el, props );
49-
el.show();
48+
$.effects.save( el, props );
49+
el.show();
5050
$.effects.createWrapper( el ); // Create Wrapper
5151

5252
// default distance for the BIGGEST bounce is the outer Distance / 3
@@ -90,7 +90,7 @@ $.effects.effect.bounce = function( o, done ) {
9090

9191
el.animate( upAnim, speed, easing );
9292
}
93-
93+
9494
el.queue(function() {
9595
if ( hide ) {
9696
el.hide();

ui/jquery.effects.drop.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
$.effects.effect.drop = function( o, done ) {
1616

17-
var el = $( this ),
17+
var el = $( this ),
1818
props = [ "position", "top", "bottom", "left", "right", "opacity", "height", "width" ],
1919
mode = $.effects.setMode( el, o.mode || "hide" ),
2020
show = mode === "show",
@@ -27,9 +27,9 @@ $.effects.effect.drop = function( o, done ) {
2727
distance;
2828

2929
// Adjust
30-
$.effects.save( el, props );
31-
el.show();
32-
$.effects.createWrapper( el );
30+
$.effects.save( el, props );
31+
el.show();
32+
$.effects.createWrapper( el );
3333

3434
distance = o.distance || el[ ref === "top" ? "outerHeight": "outerWidth" ]({ margin: true }) / 2;
3535

@@ -40,22 +40,22 @@ $.effects.effect.drop = function( o, done ) {
4040
}
4141

4242
// Animation
43-
animation[ ref ] = ( show ?
44-
( motion === "pos" ? "+=" : "-=" ) :
43+
animation[ ref ] = ( show ?
44+
( motion === "pos" ? "+=" : "-=" ) :
4545
( motion === "pos" ? "-=" : "+=" ) ) +
4646
distance;
4747

4848
// Animate
49-
el.animate( animation, {
50-
queue: false,
51-
duration: o.duration,
52-
easing: o.easing,
49+
el.animate( animation, {
50+
queue: false,
51+
duration: o.duration,
52+
easing: o.easing,
5353
complete: function() {
5454
if ( mode === "hide" ) {
5555
el.hide();
5656
}
57-
$.effects.restore( el, props );
58-
$.effects.removeWrapper( el );
57+
$.effects.restore( el, props );
58+
$.effects.removeWrapper( el );
5959
done();
6060
}
6161
});

ui/jquery.effects.fade.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $.effects.effect.fade = function( o, done ) {
1818
hide = mode === "hide";
1919

2020
el.show();
21-
el.animate({
21+
el.animate({
2222
opacity: hide ? 0 : 1
2323
}, {
2424
queue: false,

ui/jquery.effects.scale.js

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ $.effects.effect.puff = function( o, done ) {
1818
hide = mode === "hide",
1919
percent = parseInt( o.percent, 10 ) || 150,
2020
factor = percent / 100,
21-
original = {
22-
height: elem.height(),
23-
width: elem.width()
21+
original = {
22+
height: elem.height(),
23+
width: elem.width()
2424
};
2525

2626
$.extend( o, {
@@ -51,44 +51,44 @@ $.effects.effect.scale = function( o, done ) {
5151
( parseInt( o.percent, 10 ) === 0 ? 0 : ( mode === "hide" ? 0 : 100 ) ),
5252
direction = o.direction || "both",
5353
origin = o.origin,
54-
original = {
55-
height: el.height(),
54+
original = {
55+
height: el.height(),
5656
width: el.width(),
5757
outerHeight: el.outerHeight(),
5858
outerWidth: el.outerWidth()
5959
},
6060
factor = {
6161
y: direction !== "horizontal" ? (percent / 100) : 1,
6262
x: direction !== "vertical" ? (percent / 100) : 1
63-
};
63+
};
6464

6565
// We are going to pass this effect to the size effect:
6666
options.effect = "size";
6767
options.queue = false;
6868
options.complete = done;
6969

7070
// Set default origin and restore for show/hide
71-
if ( mode !== "effect" ) {
71+
if ( mode !== "effect" ) {
7272
options.origin = origin || ["middle","center"];
7373
options.restore = true;
7474
}
7575

76-
options.from = o.from || ( mode === "show" ? { height: 0, width: 0 } : original );
76+
options.from = o.from || ( mode === "show" ? { height: 0, width: 0 } : original );
7777
options.to = {
78-
height: original.height * factor.y,
78+
height: original.height * factor.y,
7979
width: original.width * factor.x,
80-
outerHeight: original.outerHeight * factor.y,
80+
outerHeight: original.outerHeight * factor.y,
8181
outerWidth: original.outerWidth * factor.x
82-
};
82+
};
8383

8484
// Fade option to support puff
8585
if ( options.fade ) {
8686
if ( mode === "show" ) {
87-
options.from.opacity = 0;
87+
options.from.opacity = 0;
8888
options.to.opacity = 1;
8989
}
9090
if ( mode === "hide" ) {
91-
options.from.opacity = 1;
91+
options.from.opacity = 1;
9292
options.to.opacity = 0;
9393
}
9494
}
@@ -101,7 +101,7 @@ $.effects.effect.scale = function( o, done ) {
101101
$.effects.effect.size = function( o, done ) {
102102

103103
// Create element
104-
var el = $( this ),
104+
var el = $( this ),
105105
props = [ "position", "top", "bottom", "left", "right", "width", "height", "overflow", "opacity" ],
106106

107107
// Always restore
@@ -125,7 +125,7 @@ $.effects.effect.size = function( o, done ) {
125125
el.show();
126126
}
127127
original = {
128-
height: el.height(),
128+
height: el.height(),
129129
width: el.width(),
130130
outerHeight: el.outerHeight(),
131131
outerWidth: el.outerWidth()
@@ -137,11 +137,11 @@ $.effects.effect.size = function( o, done ) {
137137
// Set scaling factor
138138
factor = {
139139
from: {
140-
y: el.from.height / original.height,
140+
y: el.from.height / original.height,
141141
x: el.from.width / original.width
142142
},
143143
to: {
144-
y: el.to.height / original.height,
144+
y: el.to.height / original.height,
145145
x: el.to.width / original.width
146146
}
147147
};
@@ -150,35 +150,35 @@ $.effects.effect.size = function( o, done ) {
150150
if ( scale === "box" || scale === "both" ) {
151151

152152
// Vertical props scaling
153-
if ( factor.from.y !== factor.to.y ) {
153+
if ( factor.from.y !== factor.to.y ) {
154154
props = props.concat( vProps );
155155
el.from = $.effects.setTransition( el, vProps, factor.from.y, el.from );
156156
el.to = $.effects.setTransition( el, vProps, factor.to.y, el.to );
157157
}
158158

159159
// Horizontal props scaling
160-
if ( factor.from.x !== factor.to.x ) {
160+
if ( factor.from.x !== factor.to.x ) {
161161
props = props.concat( hProps );
162162
el.from = $.effects.setTransition( el, hProps, factor.from.x, el.from );
163163
el.to = $.effects.setTransition( el, hProps, factor.to.x, el.to );
164164
}
165165
}
166166

167167
// Scale the content
168-
if ( scale === "content" || scale === "both" ) {
168+
if ( scale === "content" || scale === "both" ) {
169169

170170
// Vertical props scaling
171-
if ( factor.from.y !== factor.to.y ) {
171+
if ( factor.from.y !== factor.to.y ) {
172172
props = props.concat( cProps );
173173
el.from = $.effects.setTransition( el, cProps, factor.from.y, el.from );
174174
el.to = $.effects.setTransition( el, cProps, factor.to.y, el.to );
175175
}
176176
}
177177

178-
$.effects.save( el, restore ? props : props1 );
179-
el.show();
178+
$.effects.save( el, restore ? props : props1 );
179+
el.show();
180180
$.effects.createWrapper( el );
181-
el.css( "overflow", "hidden" ).css( el.from );
181+
el.css( "overflow", "hidden" ).css( el.from );
182182

183183
// Adjust
184184
if (origin) { // Calculate baseline shifts
@@ -200,25 +200,25 @@ $.effects.effect.size = function( o, done ) {
200200

201201
el.find( "*[width]" ).each( function(){
202202
var child = $( this ),
203-
c_original = {
204-
height: child.height(),
203+
c_original = {
204+
height: child.height(),
205205
width: child.width()
206206
};
207207
if (restore) {
208208
$.effects.save(child, props2);
209209
}
210210

211211
child.from = {
212-
height: c_original.height * factor.from.y,
212+
height: c_original.height * factor.from.y,
213213
width: c_original.width * factor.from.x
214214
};
215215
child.to = {
216-
height: c_original.height * factor.to.y,
216+
height: c_original.height * factor.to.y,
217217
width: c_original.width * factor.to.x
218218
};
219219

220220
// Vertical props scaling
221-
if ( factor.from.y !== factor.to.y ) {
221+
if ( factor.from.y !== factor.to.y ) {
222222
child.from = $.effects.setTransition( child, vProps, factor.from.y, child.from );
223223
child.to = $.effects.setTransition( child, vProps, factor.to.y, child.to );
224224
}
@@ -242,10 +242,10 @@ $.effects.effect.size = function( o, done ) {
242242
}
243243

244244
// Animate
245-
el.animate( el.to, {
246-
queue: false,
247-
duration: o.duration,
248-
easing: o.easing,
245+
el.animate( el.to, {
246+
queue: false,
247+
duration: o.duration,
248+
easing: o.easing,
249249
complete: function() {
250250
if ( el.to.opacity === 0 ) {
251251
el.css( "opacity", el.from.opacity );
@@ -277,7 +277,7 @@ $.effects.effect.size = function( o, done ) {
277277
return toRef + "px";
278278
}
279279

280-
return val + toRef + "px";
280+
return val + toRef + "px";
281281
});
282282
});
283283
}

ui/jquery.effects.slide.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,32 +29,32 @@ $.effects.effect.slide = function( o, done ) {
2929
// Adjust
3030
$.effects.save( el, props );
3131
el.show();
32-
distance = o.distance || el[ ref === "top" ? "outerHeight" : "outerWidth" ]({
32+
distance = o.distance || el[ ref === "top" ? "outerHeight" : "outerWidth" ]({
3333
margin: true
3434
});
35-
35+
3636
$.effects.createWrapper( el ).css({
3737
overflow: "hidden"
3838
});
39-
39+
4040
if ( show ) {
4141
el.css( ref, positiveMotion ? (isNaN(distance) ? "-" + distance : -distance) : distance );
4242
}
4343

4444
// Animation
45-
animation[ ref ] = ( show ?
46-
( positiveMotion ? "+=" : "-=") :
45+
animation[ ref ] = ( show ?
46+
( positiveMotion ? "+=" : "-=") :
4747
( positiveMotion ? "-=" : "+=")) +
4848
distance;
4949

5050
// Animate
51-
el.animate( animation, {
52-
queue: false,
53-
duration: o.duration,
54-
easing: o.easing,
51+
el.animate( animation, {
52+
queue: false,
53+
duration: o.duration,
54+
easing: o.easing,
5555
complete: function() {
5656
if ( mode === "hide" ) {
57-
el.hide();
57+
el.hide();
5858
}
5959
$.effects.restore( el, props );
6060
$.effects.removeWrapper( el );

0 commit comments

Comments
 (0)