whitespace: Removed trailing whitespace from non-blank lines

This commit is contained in:
Richard Worth 2008-09-20 03:23:42 +00:00
parent 0bae0870d9
commit a522291a7b
16 changed files with 31 additions and 31 deletions

View File

@ -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();
}});
}});
});

View File

@ -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

View File

@ -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();
}});

View File

@ -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();
}});
}});
});

View File

@ -50,7 +50,7 @@ $.effects.transfer = function(o) {
transfer.remove(); // Remove div
if(o.callback) o.callback.apply(el[0], arguments); // Callback
el.dequeue();
});
});
});

View File

@ -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();

View File

@ -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);

View File

@ -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

View File

@ -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

View File

@ -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 ;)

View File

@ -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++) {

View File

@ -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';

View File

@ -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)

View File

@ -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;
};

View File

@ -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
});
}

View File

@ -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) {