aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2008-09-20 03:23:42 +0000
committerRichard Worth <rdworth@gmail.com>2008-09-20 03:23:42 +0000
commita522291a7b8a4f44c4d6cf0f1d146eab172bc0c9 (patch)
tree0fc8ca5d5e0dc3de309ce1d32d854556387949dd
parent0bae0870d920842f10322763c66bc59541b9158c (diff)
downloadjquery-ui-a522291a7b8a4f44c4d6cf0f1d146eab172bc0c9.tar.gz
jquery-ui-a522291a7b8a4f44c4d6cf0f1d146eab172bc0c9.zip
whitespace: Removed trailing whitespace from non-blank lines
-rw-r--r--ui/effects.clip.js2
-rw-r--r--ui/effects.core.js6
-rw-r--r--ui/effects.highlight.js2
-rw-r--r--ui/effects.scale.js2
-rw-r--r--ui/effects.transfer.js2
-rw-r--r--ui/ui.accordion.js2
-rw-r--r--ui/ui.autocomplete.js6
-rw-r--r--ui/ui.core.js2
-rw-r--r--ui/ui.datepicker.js6
-rw-r--r--ui/ui.draggable.js2
-rw-r--r--ui/ui.droppable.js2
-rw-r--r--ui/ui.resizable.js4
-rw-r--r--ui/ui.slider.js12
-rw-r--r--ui/ui.sortable.js4
-rw-r--r--ui/ui.spinner.js2
-rw-r--r--ui/ui.tabs.js6
16 files changed, 31 insertions, 31 deletions
diff --git a/ui/effects.clip.js b/ui/effects.clip.js
index b745af6cd..f10922282 100644
--- a/ui/effects.clip.js
+++ b/ui/effects.clip.js
@@ -45,7 +45,7 @@ $.effects.clip = function(o) {
$.effects.restore(el, props); $.effects.removeWrapper(el); // Restore
if(o.callback) o.callback.apply(el[0], arguments); // Callback
el.dequeue();
- }});
+ }});
});
diff --git a/ui/effects.core.js b/ui/effects.core.js
index 3fea647bd..23e7052c9 100644
--- a/ui/effects.core.js
+++ b/ui/effects.core.js
@@ -313,7 +313,7 @@ var colors = {
* Copyright © 2008 George McGinley Smith
* All rights reserved.
*
- * Redistribution and use in source and binary forms, with or without modification,
+ * Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of
@@ -449,7 +449,7 @@ jQuery.extend( jQuery.easing,
return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
},
easeInOutBack: function (x, t, b, c, d, s) {
- if (s == undefined) s = 1.70158;
+ if (s == undefined) s = 1.70158;
if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
},
@@ -482,7 +482,7 @@ jQuery.extend( jQuery.easing,
* Copyright © 2001 Robert Penner
* All rights reserved.
*
- * Redistribution and use in source and binary forms, with or without modification,
+ * Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of
diff --git a/ui/effects.highlight.js b/ui/effects.highlight.js
index 4f0c814b4..72a3b762f 100644
--- a/ui/effects.highlight.js
+++ b/ui/effects.highlight.js
@@ -36,7 +36,7 @@ $.effects.highlight = function(o) {
el.animate(animation, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() {
if(mode == "hide") el.hide();
$.effects.restore(el, props);
- if (mode == "show" && jQuery.browser.msie) this.style.removeAttribute('filter');
+ if (mode == "show" && jQuery.browser.msie) this.style.removeAttribute('filter');
if(o.callback) o.callback.apply(this, arguments);
el.dequeue();
}});
diff --git a/ui/effects.scale.js b/ui/effects.scale.js
index 830e234ea..ce185e65e 100644
--- a/ui/effects.scale.js
+++ b/ui/effects.scale.js
@@ -171,7 +171,7 @@ $.effects.size = function(o) {
$.effects.restore(el, restore ? props : props1); $.effects.removeWrapper(el); // Restore
if(o.callback) o.callback.apply(this, arguments); // Callback
el.dequeue();
- }});
+ }});
});
diff --git a/ui/effects.transfer.js b/ui/effects.transfer.js
index 4c4b6588a..7940216a6 100644
--- a/ui/effects.transfer.js
+++ b/ui/effects.transfer.js
@@ -50,7 +50,7 @@ $.effects.transfer = function(o) {
transfer.remove(); // Remove div
if(o.callback) o.callback.apply(el[0], arguments); // Callback
el.dequeue();
- });
+ });
});
diff --git a/ui/ui.accordion.js b/ui/ui.accordion.js
index 4125a9ec7..af9a3276a 100644
--- a/ui/ui.accordion.js
+++ b/ui/ui.accordion.js
@@ -121,7 +121,7 @@ function toggle(toShow, toHide, data, clickedActive, down) {
options.data = data;
var complete = scopeCallback(completed, this);
- $.data(this, "accordion")._trigger("changestart", null, options.data);
+ $.data(this, "accordion")._trigger("changestart", null, options.data);
// count elements to animate
options.running = toHide.size() === 0 ? toShow.size() : toHide.size();
diff --git a/ui/ui.autocomplete.js b/ui/ui.autocomplete.js
index b065f093c..52e5bbb40 100644
--- a/ui/ui.autocomplete.js
+++ b/ui/ui.autocomplete.js
@@ -425,7 +425,7 @@ $.Autocompleter.Cache = function(options) {
var length = 0;
function matchSubset(s, sub) {
- if (!options.matchCase)
+ if (!options.matchCase)
s = s.toLowerCase();
var i = s.indexOf(sub);
if (i == -1) return false;
@@ -466,7 +466,7 @@ $.Autocompleter.Cache = function(options) {
var firstChar = value.charAt(0).toLowerCase();
// if no lookup array for this character exists, look it up now
- if( !stMatchSets[firstChar] )
+ if( !stMatchSets[firstChar] )
stMatchSets[firstChar] = [];
// if the match is a string
@@ -581,7 +581,7 @@ $.Autocompleter.Select = function (options, input, select, config) {
list = $("<ul/>").appendTo(element).mouseover( function(event) {
if(target(event).nodeName && target(event).nodeName.toUpperCase() == 'LI') {
active = $("li", list).removeClass(CLASSES.ACTIVE).index(target(event));
- $(target(event)).addClass(CLASSES.ACTIVE);
+ $(target(event)).addClass(CLASSES.ACTIVE);
}
}).click(function(event) {
$(target(event)).addClass(CLASSES.ACTIVE);
diff --git a/ui/ui.core.js b/ui/ui.core.js
index 691847f92..2846e8e43 100644
--- a/ui/ui.core.js
+++ b/ui/ui.core.js
@@ -259,7 +259,7 @@ $.ui = {
var tmp = $('<div class="ui-gen">').addClass(name).css({position:'absolute', top:'-5000px', left:'-5000px', display:'block'}).appendTo('body');
//if (!$.browser.safari)
- //tmp.appendTo('body');
+ //tmp.appendTo('body');
//Opera and Safari set width and height to 0px instead of auto
//Safari returns rgba(0,0,0,0) when bgcolor is not set
diff --git a/ui/ui.datepicker.js b/ui/ui.datepicker.js
index 50e4c28d5..8c8df6921 100644
--- a/ui/ui.datepicker.js
+++ b/ui/ui.datepicker.js
@@ -101,7 +101,7 @@ function Datepicker() {
calculateWeek: this.iso8601Week, // How to calculate the week of the year,
// takes a Date and returns the number of the week for it
shortYearCutoff: '+10', // Short year values < this are in the current century,
- // > this are in the previous century,
+ // > this are in the previous century,
// string value starting with '+' for current year + value
showStatus: false, // True to show status bar at bottom, false to not show it
statusForDate: this.dateStatus, // Function to provide status text for a date -
@@ -110,7 +110,7 @@ function Datepicker() {
maxDate: null, // The latest selectable date, or null for no limit
duration: 'normal', // Duration of display/closure
beforeShowDay: null, // Function that takes a date and returns an array with
- // [0] = true if selectable, false if not, [1] = custom CSS class name(s) or '',
+ // [0] = true if selectable, false if not, [1] = custom CSS class name(s) or '',
// [2] = cell title (optional), e.g. $.datepicker.noWeekends
beforeShow: null, // Function that takes an input field and
// returns a set of custom settings for the date picker
@@ -248,7 +248,7 @@ $.extend(Datepicker.prototype, {
_inlineShow: function(inst) {
var numMonths = this._getNumberOfMonths(inst); // fix width for dynamic number of date pickers
inst.dpDiv.width(numMonths[1] * $('.ui-datepicker', inst.dpDiv[0]).width());
- },
+ },
/* Pop-up the date picker in a "dialog" box.
@param input element - ignored
diff --git a/ui/ui.draggable.js b/ui/ui.draggable.js
index ff3ebddd1..069a4dfcd 100644
--- a/ui/ui.draggable.js
+++ b/ui/ui.draggable.js
@@ -493,7 +493,7 @@ $.ui.plugin.add("draggable", "snap", {
for (var i = inst.snapElements.length - 1; i >= 0; i--){
- var l = inst.snapElements[i].left, r = l + inst.snapElements[i].width,
+ var l = inst.snapElements[i].left, r = l + inst.snapElements[i].width,
t = inst.snapElements[i].top, b = t + inst.snapElements[i].height;
//Yes, I know, this is insane ;)
diff --git a/ui/ui.droppable.js b/ui/ui.droppable.js
index cdd60e76a..6403d37d2 100644
--- a/ui/ui.droppable.js
+++ b/ui/ui.droppable.js
@@ -190,7 +190,7 @@ $.ui.ddmanager = {
var m = $.ui.ddmanager.droppables[t.options.scope];
var type = e ? e.type : null; // workaround for #2317
- var list = (t.currentItem || t.element).find(":data(droppable)").andSelf();
+ var list = (t.currentItem || t.element).find(":data(droppable)").andSelf();
droppablesLoop: for (var i = 0; i < m.length; i++) {
diff --git a/ui/ui.resizable.js b/ui/ui.resizable.js
index fdd22b190..26664cb5c 100644
--- a/ui/ui.resizable.js
+++ b/ui/ui.resizable.js
@@ -151,7 +151,7 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
target = target || this.element;
for(var i in o.handles) {
- if(o.handles[i].constructor == String)
+ if(o.handles[i].constructor == String)
o.handles[i] = $(o.handles[i], this.element).show();
if (o.transparent)
@@ -190,7 +190,7 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
//Matching axis name
o._handles.mouseover(function() {
if (!o.resizing) {
- if (this.className)
+ if (this.className)
var axis = this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);
//Axis, default = se
self.axis = o.axis = axis && axis[1] ? axis[1] : 'se';
diff --git a/ui/ui.slider.js b/ui/ui.slider.js
index af4c5de6e..ce81a7f51 100644
--- a/ui/ui.slider.js
+++ b/ui/ui.slider.js
@@ -135,7 +135,7 @@ $.widget("ui.slider", {
_initBoundaries: function() {
var element = this.element[0], o = this.options;
- this.actualSize = { width: this.element.outerWidth() , height: this.element.outerHeight() };
+ this.actualSize = { width: this.element.outerWidth() , height: this.element.outerHeight() };
$.extend(o, {
axis: o.axis || (element.offsetWidth < element.offsetHeight ? 'vertical' : 'horizontal'),
@@ -283,7 +283,7 @@ $.widget("ui.slider", {
return value;
},
_handleSize: function(handle,axis) {
- return $(handle != undefined && handle !== null ? this.handle[handle] : this.currentHandle)[0]["offset"+(axis == "x" ? "Width" : "Height")];
+ return $(handle != undefined && handle !== null ? this.handle[handle] : this.currentHandle)[0]["offset"+(axis == "x" ? "Width" : "Height")];
},
_oneStep: function(axis) {
return this.options.stepping[axis] || 1;
@@ -302,7 +302,7 @@ $.widget("ui.slider", {
// This is a especially ugly fix for strange blur events happening on mousemove events
if (!this.currentHandle)
- this._focus(this.previousHandle, true);
+ this._focus(this.previousHandle, true);
this.offset = this.element.offset();
@@ -336,12 +336,12 @@ $.widget("ui.slider", {
if (o.stepping.x) {
var value = this._convertValue(position.left, "x");
value = Math.round(value / o.stepping.x) * o.stepping.x;
- position.left = this._translateValue(value, "x");
+ position.left = this._translateValue(value, "x");
}
if (o.stepping.y) {
var value = this._convertValue(position.top, "y");
value = Math.round(value / o.stepping.y) * o.stepping.y;
- position.top = this._translateValue(value, "y");
+ position.top = this._translateValue(value, "y");
}
position.left = this._translateRange(position.left, "x");
@@ -371,7 +371,7 @@ $.widget("ui.slider", {
//If no handle has been passed, no current handle is available and we have multiple handles, return false
if (handle == undefined && !this.currentHandle && this.handle.length != 1)
- return false;
+ return false;
//If only one handle is available, use it
if (handle == undefined && !this.currentHandle)
diff --git a/ui/ui.sortable.js b/ui/ui.sortable.js
index f4263263b..ba08bbb9b 100644
--- a/ui/ui.sortable.js
+++ b/ui/ui.sortable.js
@@ -17,9 +17,9 @@ function contains(a, b) {
if (a.contains && !safari2) {
return a.contains(b);
}
- if (a.compareDocumentPosition)
+ if (a.compareDocumentPosition)
return !!(a.compareDocumentPosition(b) & 16);
- while (b = b.parentNode)
+ while (b = b.parentNode)
if (b == a) return true;
return false;
};
diff --git a/ui/ui.spinner.js b/ui/ui.spinner.js
index 1413a4286..f68da1903 100644
--- a/ui/ui.spinner.js
+++ b/ui/ui.spinner.js
@@ -229,7 +229,7 @@ $.widget('ui.spinner', {
_animate: function(d) {
if (this.element.hasClass('ui-spinner-list') && ((d == 'up' && this._getValue() <= this.options.max) || (d == 'down' && this._getValue() >= this.options.min)) ) {
this.element.animate({marginTop: '-' + this._getValue() * this.element.outerHeight() }, {
- duration: 'fast',
+ duration: 'fast',
queue: false
});
}
diff --git a/ui/ui.tabs.js b/ui/ui.tabs.js
index b25a892ab..432d5e693 100644
--- a/ui/ui.tabs.js
+++ b/ui/ui.tabs.js
@@ -232,7 +232,7 @@ $.widget("ui.tabs", {
// Check if click handler returns false last so that it is not executed
// for a disabled or loading tab!
if (($li.hasClass(o.selectedClass) && !o.unselect)
- || $li.hasClass(o.disabledClass)
+ || $li.hasClass(o.disabledClass)
|| $(this).hasClass(o.loadingClass)
|| self._trigger('select', null, self.ui(this, $show[0])) === false
) {
@@ -320,7 +320,7 @@ $.widget("ui.tabs", {
},
add: function(url, label, index) {
- if (index == undefined)
+ if (index == undefined)
index = this.$tabs.length; // append by default
var o = this.options;
@@ -555,7 +555,7 @@ $.extend($.ui.tabs.prototype, {
self.rotation = setInterval(function() {
t = ++t < self.$tabs.length ? t : 0;
self.select(t);
- }, ms);
+ }, ms);
}
function stop(e) {