whitespace

This commit is contained in:
Richard Worth 2008-09-20 02:43:18 +00:00
parent 1285c6e763
commit 0bae0870d9
13 changed files with 371 additions and 394 deletions

View File

@ -193,7 +193,6 @@ $.Autocompleter = function(input, options) {
$(input.form).unbind(".autocomplete");
});
function selectCurrent() {
var selected = select.selected();
if( !selected )

View File

@ -43,7 +43,6 @@ $.widget("ui.draggable", $.extend({}, $.ui.mouse, {
},
_init: function() {
if (this.options.helper == 'original' && !(/^(?:r|a|f)/).test(this.element.css("position")))
@ -148,7 +147,6 @@ $.widget("ui.draggable", $.extend({}, $.ui.mouse, {
if(o.containment)
this.setContainment();
//Call plugins and callbacks
this._propagate("start", e);
@ -217,7 +215,6 @@ $.widget("ui.draggable", $.extend({}, $.ui.mouse, {
},
_convertPositionTo: function(d, pos) {
if(!pos) pos = this.position;
@ -415,8 +412,6 @@ $.ui.plugin.add("draggable", "iframeFix", {
}
});
$.ui.plugin.add("draggable", "scroll", {
start: function(e, ui) {
var o = ui.options;
@ -447,7 +442,6 @@ $.ui.plugin.add("draggable", "scroll", {
i.overflowY[0].scrollTop = scrolled = i.overflowY[0].scrollTop + o.scrollSpeed;
if(e.pageY - i.overflowYOffset.top < o.scrollSensitivity)
i.overflowY[0].scrollTop = scrolled = i.overflowY[0].scrollTop - o.scrollSpeed;
} else {
if(e.pageY - $(document).scrollTop() < o.scrollSensitivity)
scrolled = $(document).scrollTop($(document).scrollTop() - o.scrollSpeed);
@ -473,7 +467,6 @@ $.ui.plugin.add("draggable", "scroll", {
}
});
$.ui.plugin.add("draggable", "snap", {
start: function(e, ui) {

View File

@ -555,7 +555,6 @@ $.ui.plugin.add("resizable", "containment", {
};
}
// i'm a node, so compute top, left, right, bottom
else{
self.containerOffset = $(ce).offset();
@ -611,7 +610,6 @@ $.ui.plugin.add("resizable", "containment", {
var helper = $(self.helper), ho = helper.offset(), w = helper.innerWidth(), h = helper.innerHeight();
if (o.helper && !o.animate && /relative/.test(ce.css('position')))
$(this).css({ left: (ho.left - co.left), top: (ho.top - co.top), width: w, height: h });

View File

@ -82,7 +82,6 @@ $.widget("ui.slider", {
});
}
var handleclass = function(el) {
this.element = $(el);
this.element.data("mouse", this);
@ -104,7 +103,6 @@ $.widget("ui.slider", {
trigger: function(e) { this._mouseDown(e); }
});
$(this.handle)
.each(function() {
new handleclass(this);
@ -156,7 +154,6 @@ $.widget("ui.slider", {
};
},
_keydown: function(keyCode, handle) {
var k = keyCode;
if(/(33|34|35|36|37|38|39|40)/.test(k)) {
@ -216,8 +213,6 @@ $.widget("ui.slider", {
}, null, !this.options.distance);
},
_createRange: function() {
if(this.rangeElement) return;
this.rangeElement = $('<div></div>')
@ -297,7 +292,6 @@ $.widget("ui.slider", {
return /* this.options.paging[axis] ||*/ 10;
},
_start: function(e, handle) {
var o = this.options;
@ -386,7 +380,6 @@ $.widget("ui.slider", {
if (handle != undefined)
this.currentHandle = this.previousHandle = $(this.handle[handle] || handle);
if(value.x !== undefined && value.y !== undefined) {
var x = value.x, y = value.y;
} else {

View File

@ -328,7 +328,6 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, {
if(this._intersectsWith(this.containers[i].containerCache)) {
if(!this.containers[i].containerCache.over) {
if(this.currentContainer != this.containers[i]) {
//When entering a new container, we will find the item with the least distance and append our item near it
@ -460,7 +459,6 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, {
//If o.placeholder is used, create a new element at the given position with the class
this.helperProportions = { width: this.helper.outerWidth(), height: this.helper.outerHeight() };//Cache the helper size
if(o.helper == "original") {
this._storedCSS = { position: this.currentItem.css("position"), top: this.currentItem.css("top"), left: this.currentItem.css("left"), clear: this.currentItem.css("clear") };
} else {
@ -534,7 +532,6 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, {
this._mouseDrag(e); //Execute the drag once - this causes the helper not to be visible before getting its correct position
return true;
},
_convertPositionTo: function(d, pos) {

View File

@ -118,7 +118,6 @@ $.widget('ui.spinner', {
})
.end();
// DataList: Set contraints for object length and step size.
// Manipulate height of spinner.
this._items = this.element.children().length;
@ -157,7 +156,6 @@ $.widget('ui.spinner', {
}
},
_constrain: function() {
if(this.options.min != undefined && this._getValue() < this.options.min) this._setValue(this.options.min);
if(this.options.max != undefined && this._getValue() > this.options.max) this._setValue(this.options.max);
@ -246,7 +244,6 @@ $.widget('ui.spinner', {
}
},
plugins: {},
ui: function(e) {
return {