Skip to content

Commit dbcf65f

Browse files
Remove trailing spaces
1 parent b00026f commit dbcf65f

5 files changed

Lines changed: 26 additions & 26 deletions

File tree

ui/ui.accordion.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ $.widget("ui.accordion", {
2828
}
2929
}
3030
}
31-
31+
3232
this.element.addClass("ui-accordion ui-widget ui-helper-reset");
3333
var groups = this.element.children().addClass("ui-accordion-group");
3434
var headers = options.headers = groups.find("> :first-child").addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all")
3535
.bind("mouseenter.accordion", function(){ $(this).addClass('ui-state-hover'); })
3636
.bind("mouseleave.accordion", function(){ $(this).removeClass('ui-state-hover'); });
3737
// wrap content elements in div against animation issues
3838
headers.next().wrap("<div></div>").addClass("ui-accordion-content").parent().addClass("ui-accordion-content-wrap ui-helper-reset ui-widget-content ui-corner-bottom");
39-
39+
4040
var active = options.active = findActive(headers, options.active).toggleClass("ui-state-default").toggleClass("ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");
4141
active.parent().addClass("selected");
4242
$("<span/>").addClass("ui-icon " + this.options.icons.header).prependTo(headers);
@@ -129,7 +129,7 @@ $.widget("ui.accordion", {
129129

130130
return true;
131131
},
132-
132+
133133
resize: function() {
134134
var options = this.options,
135135
maxHeight;

ui/ui.datepicker.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ $.extend(Datepicker.prototype, {
304304
css({opacity: '1.0', cursor: ''});
305305
}
306306
else if (nodeName == 'div' || nodeName == 'span') {
307-
var inline = $target.children('.' + this._inlineClass);
307+
var inline = $target.children('.' + this._inlineClass);
308308
inline.children().removeClass('ui-state-disabled');
309309
}
310310
this._disabledInputs = $.map(this._disabledInputs,
@@ -340,9 +340,9 @@ $.extend(Datepicker.prototype, {
340340
@return boolean - true if disabled, false if enabled */
341341
_isDisabledDatepicker: function(target) {
342342
if (!target) {
343-
return false;
343+
return false;
344344
}
345-
for (var i = 0; i < this._disabledInputs.length; i++) {
345+
for (var i = 0; i < this._disabledInputs.length; i++) {
346346
if (this._disabledInputs[i] == target)
347347
return true;
348348
}
@@ -433,7 +433,7 @@ $.extend(Datepicker.prototype, {
433433
_doKeyDown: function(event) {
434434
var inst = $.datepicker._getInst(event.target);
435435
var handled = true;
436-
var isRTL = inst.dpDiv.is('.ui-datepicker-rtl');
436+
var isRTL = inst.dpDiv.is('.ui-datepicker-rtl');
437437
inst._keyEvent = true;
438438
if ($.datepicker._datepickerShowing)
439439
switch (event.keyCode) {
@@ -760,7 +760,7 @@ $.extend(Datepicker.prototype, {
760760
_selectDay: function(id, month, year, td) {
761761
var target = $(id);
762762
if ($(td).hasClass(this._unselectableClass) || this._isDisabledDatepicker(target[0])) {
763-
return;
763+
return;
764764
}
765765
var inst = this._getInst(target[0]);
766766
inst.selectedDay = inst.currentDay = $('a', td).html();
@@ -1149,7 +1149,7 @@ $.extend(Datepicker.prototype, {
11491149
} catch (event) {
11501150
this.log(event);
11511151
date = defaultDate;
1152-
}
1152+
}
11531153
inst.selectedDay = date.getDate();
11541154
inst.drawMonth = inst.selectedMonth = date.getMonth();
11551155
inst.drawYear = inst.selectedYear = date.getFullYear();
@@ -1240,7 +1240,7 @@ $.extend(Datepicker.prototype, {
12401240
this._notifyChange(inst);
12411241
this._adjustInstDate(inst);
12421242
if (inst.input) {
1243-
inst.input.val(clear ? '' : this._formatDate(inst));
1243+
inst.input.val(clear ? '' : this._formatDate(inst));
12441244
}
12451245
},
12461246

@@ -1258,7 +1258,7 @@ $.extend(Datepicker.prototype, {
12581258
today = this._daylightSavingAdjust(
12591259
new Date(today.getFullYear(), today.getMonth(), today.getDate())); // clear time
12601260
var isRTL = this._get(inst, 'isRTL');
1261-
var showButtonPanel = this._get(inst, 'showButtonPanel');
1261+
var showButtonPanel = this._get(inst, 'showButtonPanel');
12621262
var hideIfNoPrevNext = this._get(inst, 'hideIfNoPrevNext');
12631263
var navigationAsDateFormat = this._get(inst, 'navigationAsDateFormat');
12641264
var numMonths = this._getNumberOfMonths(inst);
@@ -1292,7 +1292,7 @@ $.extend(Datepicker.prototype, {
12921292
prevText = (!navigationAsDateFormat ? prevText : this.formatDate(prevText,
12931293
this._daylightSavingAdjust(new Date(drawYear, drawMonth - stepMonths, 1)),
12941294
this._getFormatConfig(inst)));
1295-
var prev = (this._canAdjustMonth(inst, -1, drawYear, drawMonth) ?
1295+
var prev = (this._canAdjustMonth(inst, -1, drawYear, drawMonth) ?
12961296
'<a class="ui-datepicker-prev ui-corner-all" onclick="jQuery.datepicker._adjustDate(\'#' + inst.id + '\', -' + stepMonths + ', \'M\');"' +
12971297
' title="' + prevText + '"><span class="ui-icon ui-icon-circle-triangle-' + ( isRTL ? 'e' : 'w') + '">' + prevText + '</span></a>' :
12981298
(hideIfNoPrevNext ? '' : '<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+ prevText +'"><span class="ui-icon ui-icon-circle-triangle-' + ( isRTL ? 'e' : 'w') + '">' + prevText + '</span></a>'));
@@ -1309,7 +1309,7 @@ $.extend(Datepicker.prototype, {
13091309
currentText = (!navigationAsDateFormat ? currentText :
13101310
this.formatDate(currentText, gotoDate, this._getFormatConfig(inst)));
13111311
var controls = '<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="jQuery.datepicker._hideDatepicker();">' + this._get(inst, 'closeText') + '</button>';
1312-
var buttonPanel = (showButtonPanel) ? '<div class="ui-datepicker-buttonpane ui-widget-content">' + (isRTL ? controls : '') +
1312+
var buttonPanel = (showButtonPanel) ? '<div class="ui-datepicker-buttonpane ui-widget-content">' + (isRTL ? controls : '') +
13131313
(this._isInRange(inst, gotoDate) ? '<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="jQuery.datepicker._gotoToday(\'#' + inst.id + '\');"' +
13141314
'>' + currentText + '</button>' : '') + (isRTL ? '' : controls) + '</div>' : '';
13151315
var firstDay = parseInt(this._get(inst, 'firstDay'));
@@ -1330,7 +1330,7 @@ $.extend(Datepicker.prototype, {
13301330
for (var col = 0; col < numMonths[1]; col++) {
13311331
var selectedDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, inst.selectedDay));
13321332
var cornerClass = ' ui-corner-all';
1333-
var calender = '';
1333+
var calender = '';
13341334
if (isMultiMonth) {
13351335
calender += '<div class="ui-datepicker-group ui-datepicker-group-';
13361336
switch (col) {
@@ -1340,8 +1340,8 @@ $.extend(Datepicker.prototype, {
13401340
}
13411341
calender += '">';
13421342
}
1343-
calender += '<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix' + cornerClass + '">' +
1344-
(/all|left/.test(cornerClass) && row == 0 ? (isRTL ? next : prev) : '') +
1343+
calender += '<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix' + cornerClass + '">' +
1344+
(/all|left/.test(cornerClass) && row == 0 ? (isRTL ? next : prev) : '') +
13451345
(/all|right/.test(cornerClass) && row == 0 ? (isRTL ? prev : next) : '') +
13461346
this._generateMonthYearHeader(inst, drawMonth, drawYear, minDate, maxDate,
13471347
selectedDate, row > 0 || col > 0, monthNames) + // draw month headers
@@ -1385,10 +1385,10 @@ $.extend(Datepicker.prototype, {
13851385
(unselectable ? '' : ' onclick="jQuery.datepicker._selectDay(\'#' +
13861386
inst.id + '\',' + drawMonth + ',' + drawYear + ', this);"') + '>' + // actions
13871387
(otherMonth ? (showOtherMonths ? printDate.getDate() : '&#xa0;') : // display for other months
1388-
(unselectable ? printDate.getDate() : '<a class="ui-state-default' +
1389-
(printDate.getTime() == today.getTime() ? ' ui-state-highlight' : '') +
1388+
(unselectable ? printDate.getDate() : '<a class="ui-state-default' +
1389+
(printDate.getTime() == today.getTime() ? ' ui-state-highlight' : '') +
13901390
(printDate.getTime() >= currentDate.getTime() && printDate.getTime() <= endDate.getTime() ? // in current range
1391-
' ui-state-active' : '') + // highlight selected day
1391+
' ui-state-active' : '') + // highlight selected day
13921392
'" href="#">' + printDate.getDate() + '</a>')) + '</td>'; // display for this month
13931393
printDate.setDate(printDate.getDate() + 1);
13941394
printDate = this._daylightSavingAdjust(printDate);

ui/ui.draggable.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ $.ui.plugin.add("draggable", "connectToSortable", {
428428
this.instance.element.triggerHandler("sortreceive", [event, $.extend(this.instance._ui(), { sender: inst.element })], this.instance.options["receive"]);
429429

430430
this.instance.options.helper = this.instance.options._helper;
431-
431+
432432
if(inst.options.helper == 'original') {
433433
this.instance.currentItem.css({ top: 'auto', left: 'auto' });
434434
}
@@ -599,17 +599,17 @@ $.ui.plugin.add("draggable", "scroll", {
599599
// the scroll is included in the initial calculation of the offset of the parent, and never recalculated upon drag
600600
if(scrolled !== false && i.cssPosition == 'absolute' && i.scrollParent[0] != document && $.ui.contains(i.scrollParent[0], i.offsetParent[0])) {
601601
i.offset.parent = i._getParentOffset();
602-
602+
603603
}
604-
604+
605605
// This is another very weird special case that only happens for relative elements:
606606
// 1. If the css position is relative
607607
// 2. and the scroll parent is the document or similar to the offset parent
608608
// we have to refresh the relative offset during the scroll so there are no jumps
609609
if(scrolled !== false && i.cssPosition == 'relative' && !(i.scrollParent[0] != document && i.scrollParent[0] != i.offsetParent[0])) {
610610
i.offset.relative = i._getRelativeOffset();
611611
}
612-
612+
613613

614614
}
615615
});

ui/ui.progressbar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ $.widget("ui.progressbar", {
101101
this.valueDiv.width(value + '%');
102102
this.element.attr("aria-valuenow", value);
103103
}
104-
104+
105105
});
106106

107107
$.extend($.ui.progressbar, {

ui/ui.slider.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ $.widget("ui.slider", $.extend({}, $.ui.mouse, {
344344
var orientation = this.options.orientation;
345345
if (orientation != 'horizontal' && orientation != 'vertical')
346346
orientation = 'horizontal';
347-
347+
348348
return orientation;
349349
},
350350

@@ -367,7 +367,7 @@ $.widget("ui.slider", $.extend({}, $.ui.mouse, {
367367
var val = this.options.values[index];
368368
if (val < this._valueMin()) val = this._valueMin();
369369
if (val > this._valueMax()) val = this._valueMax();
370-
370+
371371
return val;
372372
} else {
373373
return this.options.values;

0 commit comments

Comments
 (0)