r716 - trunk/ui
r716 - trunk/ui
Author: rdworth
Date: Fri Sep 19 20:23:42 2008
New Revision: 716
Modified:
trunk/ui/effects.clip.js
trunk/ui/effects.core.js
trunk/ui/effects.highlight.js
trunk/ui/effects.scale.js
trunk/ui/effects.transfer.js
trunk/ui/ui.accordion.js
trunk/ui/ui.autocomplete.js
trunk/ui/ui.core.js
trunk/ui/ui.datepicker.js
trunk/ui/ui.draggable.js
trunk/ui/ui.droppable.js
trunk/ui/ui.resizable.js
trunk/ui/ui.slider.js
trunk/ui/ui.sortable.js
trunk/ui/ui.spinner.js
trunk/ui/ui.tabs.js
Log:
whitespace: Removed trailing whitespace from non-blank lines
Modified: trunk/ui/effects.clip.js
==============================================================================
--- trunk/ui/effects.clip.js (original)
+++ trunk/ui/effects.clip.js Fri Sep 19 20:23:42 2008
@@ -45,7 +45,7 @@
$.effects.restore(el, props); $.effects.removeWrapper(el); // Restore
if(o.callback) o.callback.apply(el[0], arguments); // Callback
el.dequeue();
- }});
+ }});
});
Modified: trunk/ui/effects.core.js
==============================================================================
--- trunk/ui/effects.core.js (original)
+++ trunk/ui/effects.core.js Fri Sep 19 20:23:42 2008
@@ -313,7 +313,7 @@
* 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 @@
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 @@
* 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
Modified: trunk/ui/effects.highlight.js
==============================================================================
--- trunk/ui/effects.highlight.js (original)
+++ trunk/ui/effects.highlight.js Fri Sep 19 20:23:42 2008
@@ -36,7 +36,7 @@
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();
}});
Modified: trunk/ui/effects.scale.js
==============================================================================
--- trunk/ui/effects.scale.js (original)
+++ trunk/ui/effects.scale.js Fri Sep 19 20:23:42 2008
@@ -171,7 +171,7 @@
$.effects.restore(el, restore ? props : props1);
$.effects.removeWrapper(el); // Restore
if(o.callback) o.callback.apply(this, arguments); // Callback
el.dequeue();
- }});
+ }});
});
Modified: trunk/ui/effects.transfer.js
==============================================================================
--- trunk/ui/effects.transfer.js (original)
+++ trunk/ui/effects.transfer.js Fri Sep 19 20:23:42 2008
@@ -50,7 +50,7 @@
transfer.remove(); // Remove div
if(o.callback) o.callback.apply(el[0], arguments); // Callback
el.dequeue();
- });
+ });
});
Modified: trunk/ui/ui.accordion.js
==============================================================================
--- trunk/ui/ui.accordion.js (original)
+++ trunk/ui/ui.accordion.js Fri Sep 19 20:23:42 2008
@@ -121,7 +121,7 @@
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();
Modified: trunk/ui/ui.autocomplete.js
==============================================================================
--- trunk/ui/ui.autocomplete.js (original)
+++ trunk/ui/ui.autocomplete.js Fri Sep 19 20:23:42 2008
@@ -425,7 +425,7 @@
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 @@
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 @@
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);
Modified: trunk/ui/ui.core.js
==============================================================================
--- trunk/ui/ui.core.js (original)
+++ trunk/ui/ui.core.js Fri Sep 19 20:23:42 2008
@@ -259,7 +259,7 @@
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
Modified: trunk/ui/ui.datepicker.js
==============================================================================
--- trunk/ui/ui.datepicker.js (original)
+++ trunk/ui/ui.datepicker.js Fri Sep 19 20:23:42 2008
@@ -101,7 +101,7 @@
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 @@
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 @@
_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
Modified: trunk/ui/ui.draggable.js
==============================================================================
--- trunk/ui/ui.draggable.js (original)
+++ trunk/ui/ui.draggable.js Fri Sep 19 20:23:42 2008
@@ -493,7 +493,7 @@
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 ;)
Modified: trunk/ui/ui.droppable.js
==============================================================================
--- trunk/ui/ui.droppable.js (original)
+++ trunk/ui/ui.droppable.js Fri Sep 19 20:23:42 2008
@@ -190,7 +190,7 @@
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++) {
Modified: trunk/ui/ui.resizable.js
==============================================================================
--- trunk/ui/ui.resizable.js (original)
+++ trunk/ui/ui.resizable.js Fri Sep 19 20:23:42 2008
@@ -151,7 +151,7 @@
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 @@
//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';
Modified: trunk/ui/ui.slider.js
==============================================================================
--- trunk/ui/ui.slider.js (original)
+++ trunk/ui/ui.slider.js Fri Sep 19 20:23:42 2008
@@ -135,7 +135,7 @@
_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 @@
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 @@
// 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 @@
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 @@
//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)
Modified: trunk/ui/ui.sortable.js
==============================================================================
--- trunk/ui/ui.sortable.js (original)
+++ trunk/ui/ui.sortable.js Fri Sep 19 20:23:42 2008
@@ -17,9 +17,9 @@
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;
};
Modified: trunk/ui/ui.spinner.js
==============================================================================
--- trunk/ui/ui.spinner.js (original)
+++ trunk/ui/ui.spinner.js Fri Sep 19 20:23:42 2008
@@ -229,7 +229,7 @@
_animate: function(d) {
if (this.element.hasClass('ui-spinner-list') && ((d == 'up' &&
this._getValue() <= this.options.max) || (d == 'down' && this._getValue()