Skip to content

Commit 16a6bf3

Browse files
Remove trailing spaces
1 parent 53c9696 commit 16a6bf3

2 files changed

Lines changed: 37 additions & 37 deletions

File tree

ui/ui.draggable.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ $.ui.plugin.add("draggable", "scroll", {
612612
else if(event.pageY - i.overflowOffset.top < o.scrollSensitivity)
613613
i.scrollParent[0].scrollTop = scrolled = i.scrollParent[0].scrollTop - o.scrollSpeed;
614614
}
615-
615+
616616
if(!o.axis || o.axis != 'y') {
617617
if((i.overflowOffset.left + i.scrollParent[0].offsetWidth) - event.pageX < o.scrollSensitivity)
618618
i.scrollParent[0].scrollLeft = scrolled = i.scrollParent[0].scrollLeft + o.scrollSpeed;
@@ -621,21 +621,21 @@ $.ui.plugin.add("draggable", "scroll", {
621621
}
622622

623623
} else {
624-
624+
625625
if(!o.axis || o.axis != 'x') {
626626
if(event.pageY - $(document).scrollTop() < o.scrollSensitivity)
627627
scrolled = $(document).scrollTop($(document).scrollTop() - o.scrollSpeed);
628628
else if($(window).height() - (event.pageY - $(document).scrollTop()) < o.scrollSensitivity)
629629
scrolled = $(document).scrollTop($(document).scrollTop() + o.scrollSpeed);
630630
}
631-
631+
632632
if(!o.axis || o.axis != 'y') {
633633
if(event.pageX - $(document).scrollLeft() < o.scrollSensitivity)
634634
scrolled = $(document).scrollLeft($(document).scrollLeft() - o.scrollSpeed);
635635
else if($(window).width() - (event.pageX - $(document).scrollLeft()) < o.scrollSensitivity)
636636
scrolled = $(document).scrollLeft($(document).scrollLeft() + o.scrollSpeed);
637637
}
638-
638+
639639
}
640640

641641
if(scrolled !== false && $.ui.ddmanager && !o.dropBehaviour)
@@ -715,9 +715,9 @@ $.ui.plugin.add("draggable", "snap", {
715715

716716
$.ui.plugin.add("draggable", "stack", {
717717
start: function(event, ui) {
718-
718+
719719
var o = $(this).data("draggable").options;
720-
720+
721721
var group = $.makeArray($(o.stack.group)).sort(function(a,b) {
722722
return (parseInt($(a).css("zIndex"),10) || o.stack.min) - (parseInt($(b).css("zIndex"),10) || o.stack.min);
723723
});
@@ -727,7 +727,7 @@ $.ui.plugin.add("draggable", "stack", {
727727
});
728728

729729
this[0].style.zIndex = o.stack.min + group.length;
730-
730+
731731
}
732732
});
733733

ui/ui.resizable.js

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
1616

1717
_init: function() {
1818

19-
var self = this, o = this.options;
19+
var self = this, o = this.options;
2020
this.element.addClass("ui-resizable");
21-
21+
2222
$.extend(this, {
2323
_aspectRatio: !!(o.aspectRatio),
2424
aspectRatio: o.aspectRatio,
@@ -64,7 +64,7 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
6464

6565
// fix handlers offset
6666
this._proportionallyResize();
67-
67+
6868
}
6969

7070
this.handles = o.handles || (!$('.ui-resizable-handle', this.element).length ? "e,s,se" : { n: '.ui-resizable-n', e: '.ui-resizable-e', s: '.ui-resizable-s', w: '.ui-resizable-w', se: '.ui-resizable-se', sw: '.ui-resizable-sw', ne: '.ui-resizable-ne', nw: '.ui-resizable-nw' });
@@ -74,10 +74,10 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
7474
var n = this.handles.split(","); this.handles = {};
7575

7676
for(var i = 0; i < n.length; i++) {
77-
77+
7878
var handle = $.trim(n[i]), hname = 'ui-resizable-'+handle;
7979
var axis = $('<div class="ui-resizable-handle ' + hname + '"></div>');
80-
80+
8181
// increase zIndex of sw, se, ne, nw axis
8282
//TODO : this modifies original option
8383
if(/sw|se|ne|nw/.test(handle)) axis.css({ zIndex: ++o.zIndex });
@@ -95,11 +95,11 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
9595
}
9696

9797
this._renderAxis = function(target) {
98-
98+
9999
target = target || this.element;
100100

101101
for(var i in this.handles) {
102-
102+
103103
if(this.handles[i].constructor == String)
104104
this.handles[i] = $(this.handles[i], this.element).show();
105105

@@ -124,19 +124,19 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
124124
target.css(padPos, padWrapper);
125125

126126
this._proportionallyResize();
127-
127+
128128
}
129-
129+
130130
//TODO: What's that good for? There's not anything to be executed left
131131
if(!$(this.handles[i]).length)
132132
continue;
133-
133+
134134
}
135135
};
136136

137137
//TODO: make renderAxis a prototype function
138138
this._renderAxis(this.element);
139-
139+
140140
this._handles = $('.ui-resizable-handle', this.element);
141141

142142
if (o.disableSelection)
@@ -171,11 +171,11 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
171171

172172
//Initialize the mouse interaction
173173
this._mouseInit();
174-
174+
175175
},
176176

177177
destroy: function() {
178-
178+
179179
this._mouseDestroy();
180180

181181
var _destroy = function(exp) {
@@ -196,9 +196,9 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
196196
})
197197
).end().remove();
198198
}
199-
199+
200200
_destroy(this.originalElement);
201-
201+
202202
},
203203

204204
_mouseCapture: function(event) {
@@ -216,7 +216,7 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
216216

217217
var o = this.options, iniPos = this.element.position(), el = this.element,
218218
num = function(v) { return parseInt(v, 10) || 0; }, ie6 = $.browser.msie && $.browser.version < 7;
219-
219+
220220
this.resizing = true;
221221
this.documentScroll = { top: $(document).scrollTop(), left: $(document).scrollLeft() };
222222

@@ -327,7 +327,7 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
327327

328328
if (this._helper) this.helper.remove();
329329
return false;
330-
330+
331331
},
332332

333333
_updateCache: function(data) {
@@ -386,44 +386,44 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
386386
},
387387

388388
_proportionallyResize: function() {
389-
389+
390390
var o = this.options;
391391
if (!this.proportionallyResize.length) return;
392392
var element = this.helper || this.element;
393-
393+
394394
for (var i=0; i < this.proportionallyResize.length; i++) {
395-
395+
396396
var prel = this.proportionallyResize[i];
397-
397+
398398
if (!this.borderDif) {
399399
var b = [prel.css('borderTopWidth'), prel.css('borderRightWidth'), prel.css('borderBottomWidth'), prel.css('borderLeftWidth')],
400400
p = [prel.css('paddingTop'), prel.css('paddingRight'), prel.css('paddingBottom'), prel.css('paddingLeft')];
401-
401+
402402
this.borderDif = $.map(b, function(v, i) {
403403
var border = parseInt(v,10)||0, padding = parseInt(p[i],10)||0;
404404
return border + padding;
405405
});
406406
}
407-
407+
408408
if ($.browser.msie && !(!($(element).is(':hidden') || $(element).parents(':hidden').length)))
409409
continue;
410-
410+
411411
prel.css({
412412
height: (element.height() - this.borderDif[0] - this.borderDif[2]) || 0,
413413
width: (element.width() - this.borderDif[1] - this.borderDif[3]) || 0
414414
});
415-
415+
416416
};
417417

418418
},
419419

420420
_renderProxy: function() {
421-
421+
422422
var el = this.element, o = this.options;
423423
this.elementOffset = el.offset();
424424

425425
if(this._helper) {
426-
426+
427427
this.helper = this.helper || $('<div style="overflow:hidden;"></div>');
428428

429429
// fix ie6 offset TODO: This seems broken
@@ -447,7 +447,7 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
447447
} else {
448448
this.helper = this.element;
449449
}
450-
450+
451451
},
452452

453453
_change: {
@@ -538,7 +538,7 @@ $.extend($.ui.resizable, {
538538
$.ui.plugin.add("resizable", "alsoResize", {
539539

540540
start: function(event, ui) {
541-
541+
542542
var o = ui.options, self = $(this).data("resizable"),
543543

544544
_store = function(exp) {
@@ -730,7 +730,7 @@ $.ui.plugin.add("resizable", "containment", {
730730
$.ui.plugin.add("resizable", "ghost", {
731731

732732
start: function(event, ui) {
733-
733+
734734
var o = ui.options, self = $(this).data("resizable"), pr = o.proportionallyResize, cs = self.size;
735735

736736
self.ghost = self.originalElement.clone();

0 commit comments

Comments
 (0)