Skip to content

Commit 51c338b

Browse files
author
Paul Bakaus
committed
all: fixed jslint warnings
1 parent 2e0f967 commit 51c338b

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

ui/effects.explode.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ $.effects.explode = function(o) {
2424
var offset = el.offset();
2525

2626
//Substract the margins - not fixing the problem yet.
27-
offset.top -= parseInt(el.css("marginTop")) || 0;
28-
offset.left -= parseInt(el.css("marginLeft")) || 0;
27+
offset.top -= parseInt(el.css("marginTop"),10) || 0;
28+
offset.left -= parseInt(el.css("marginLeft"),10) || 0;
2929

3030
var width = el.outerWidth(true);
3131
var height = el.outerHeight(true);

ui/effects.fold.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ $.effects.fold = function(o) {
3232
var ref = widthFirst ? ['width', 'height'] : ['height', 'width'];
3333
var distance = widthFirst ? [wrapper.width(), wrapper.height()] : [wrapper.height(), wrapper.width()];
3434
var percent = /([0-9]+)%/.exec(size);
35-
if(percent) size = parseInt(percent[1]) / 100 * distance[mode == 'hide' ? 0 : 1];
35+
if(percent) size = parseInt(percent[1],10) / 100 * distance[mode == 'hide' ? 0 : 1];
3636
if(mode == 'show') wrapper.css(horizFirst ? {height: 0, width: size} : {height: size, width: 0}); // Shift
3737

3838
// Animation

ui/effects.scale.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ $.effects.puff = function(o) {
2222
// Set options
2323
var options = $.extend(true, {}, o.options);
2424
var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
25-
var percent = parseInt(o.options.percent) || 150; // Set default puff percent
25+
var percent = parseInt(o.options.percent,10) || 150; // Set default puff percent
2626
options.fade = true; // It's not a puff if it doesn't fade! :)
2727
var original = {height: el.height(), width: el.width()}; // Save original
2828

@@ -52,7 +52,7 @@ $.effects.scale = function(o) {
5252
// Set options
5353
var options = $.extend(true, {}, o.options);
5454
var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode
55-
var percent = parseInt(o.options.percent) || (parseInt(o.options.percent) == 0 ? 0 : (mode == 'hide' ? 0 : 100)); // Set default scaling percent
55+
var percent = parseInt(o.options.percent,10) || (parseInt(o.options.percent,10) == 0 ? 0 : (mode == 'hide' ? 0 : 100)); // Set default scaling percent
5656
var direction = o.options.direction || 'both'; // Set default axis
5757
var origin = o.options.origin; // The origin of the scaling
5858
if (mode != 'effect') { // Set default origin and restore for show/hide

ui/effects.transfer.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ $.effects.transfer = function(o) {
3131
transfer.css({
3232
top: position.top,
3333
left: position.left,
34-
height: el.outerHeight() - parseInt(transfer.css('borderTopWidth')) - parseInt(transfer.css('borderBottomWidth')),
35-
width: el.outerWidth() - parseInt(transfer.css('borderLeftWidth')) - parseInt(transfer.css('borderRightWidth')),
34+
height: el.outerHeight() - parseInt(transfer.css('borderTopWidth'),10) - parseInt(transfer.css('borderBottomWidth'),10),
35+
width: el.outerWidth() - parseInt(transfer.css('borderLeftWidth'),10) - parseInt(transfer.css('borderRightWidth'),10),
3636
position: 'absolute'
3737
});
3838

@@ -41,8 +41,8 @@ $.effects.transfer = function(o) {
4141
animation = {
4242
top: position.top,
4343
left: position.left,
44-
height: target.outerHeight() - parseInt(transfer.css('borderTopWidth')) - parseInt(transfer.css('borderBottomWidth')),
45-
width: target.outerWidth() - parseInt(transfer.css('borderLeftWidth')) - parseInt(transfer.css('borderRightWidth'))
44+
height: target.outerHeight() - parseInt(transfer.css('borderTopWidth'),10) - parseInt(transfer.css('borderBottomWidth'),10),
45+
width: target.outerWidth() - parseInt(transfer.css('borderLeftWidth'),10) - parseInt(transfer.css('borderRightWidth'),10)
4646
};
4747

4848
// Animate

ui/ui.accordion.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ $.extend($.ui.accordion, {
423423
// fix width before calculating height of hidden element
424424
var s = options.toShow;
425425
originalWidth = s[0].style.width;
426-
s.width( parseInt(s.parent().width()) - parseInt(s.css("paddingLeft")) - parseInt(s.css("paddingRight")) - parseInt(s.css("borderLeftWidth")) - parseInt(s.css("borderRightWidth")) );
426+
s.width( parseInt(s.parent().width(),10) - parseInt(s.css("paddingLeft"),10) - parseInt(s.css("paddingRight"),10) - parseInt(s.css("borderLeftWidth"),10) - parseInt(s.css("borderRightWidth"),10) );
427427

428428
$.each(fxAttrs, function(i, prop) {
429429
hideProps[prop] = 'hide';

ui/ui.resizable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
350350
_respectSize: function(data, event) {
351351

352352
var isNumber = function(value) {
353-
return !isNaN(parseInt(value, 10))
353+
return !isNaN(parseInt(value, 10));
354354
};
355355

356356
var el = this.helper, o = this.options, pRatio = this._aspectRatio || event.shiftKey, a = this.axis,

ui/ui.tabs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ $.widget("ui.tabs", {
409409
}
410410

411411
o.disabled = $.map(o.disabled,
412-
function(n, i) { return n >= index ? ++n : n });
412+
function(n, i) { return n >= index ? ++n : n; });
413413

414414
this._tabify();
415415

@@ -437,7 +437,7 @@ $.widget("ui.tabs", {
437437
this.select(index + (index + 1 < this.$tabs.length ? 1 : -1));
438438

439439
o.disabled = $.map($.grep(o.disabled, function(n, i) { return n != index; }),
440-
function(n, i) { return n >= index ? --n : n });
440+
function(n, i) { return n >= index ? --n : n; });
441441

442442
this._tabify();
443443

0 commit comments

Comments
 (0)