Skip to content

Commit 74d7eac

Browse files
committed
All: Convert single quotes to double quotes.
1 parent 63d624f commit 74d7eac

12 files changed

+654
-653
lines changed

ui/.jshintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"latedef": true,
99
"noarg": true,
1010
"onevar": true,
11+
"quotmark": "double",
1112
"trailing": true,
1213
"undef": true,
1314
"unused": true,

ui/jquery.ui.core.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,17 @@ $.fn.extend({
6969

7070
scrollParent: function() {
7171
var scrollParent;
72-
if (($.ui.ie && (/(static|relative)/).test(this.css('position'))) || (/absolute/).test(this.css('position'))) {
72+
if (($.ui.ie && (/(static|relative)/).test(this.css("position"))) || (/absolute/).test(this.css("position"))) {
7373
scrollParent = this.parents().filter(function() {
74-
return (/(relative|absolute|fixed)/).test($.css(this,'position')) && (/(auto|scroll)/).test($.css(this,'overflow')+$.css(this,'overflow-y')+$.css(this,'overflow-x'));
74+
return (/(relative|absolute|fixed)/).test($.css(this,"position")) && (/(auto|scroll)/).test($.css(this,"overflow")+$.css(this,"overflow-y")+$.css(this,"overflow-x"));
7575
}).eq(0);
7676
} else {
7777
scrollParent = this.parents().filter(function() {
78-
return (/(auto|scroll)/).test($.css(this,'overflow')+$.css(this,'overflow-y')+$.css(this,'overflow-x'));
78+
return (/(auto|scroll)/).test($.css(this,"overflow")+$.css(this,"overflow-y")+$.css(this,"overflow-x"));
7979
}).eq(0);
8080
}
8181

82-
return (/fixed/).test(this.css('position')) || !scrollParent.length ? $(document) : scrollParent;
82+
return (/fixed/).test(this.css("position")) || !scrollParent.length ? $(document) : scrollParent;
8383
},
8484

8585
zIndex: function( zIndex ) {

ui/jquery.ui.datepicker.js

Lines changed: 397 additions & 397 deletions
Large diffs are not rendered by default.

ui/jquery.ui.dialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ $.widget( "ui.dialog", {
466466
// .ui-resizable has position: relative defined in the stylesheet
467467
// but dialogs have to use absolute or fixed positioning
468468
position = this.uiDialog.css("position"),
469-
resizeHandles = typeof handles === 'string' ?
469+
resizeHandles = typeof handles === "string" ?
470470
handles :
471471
"n,e,s,w,se,sw,ne,nw";
472472

ui/jquery.ui.draggable.js

Lines changed: 56 additions & 56 deletions
Large diffs are not rendered by default.

ui/jquery.ui.droppable.js

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ $.widget("ui.droppable", {
2424
version: "@VERSION",
2525
widgetEventPrefix: "drop",
2626
options: {
27-
accept: '*',
27+
accept: "*",
2828
activeClass: false,
2929
addClasses: true,
3030
greedy: false,
3131
hoverClass: false,
32-
scope: 'default',
33-
tolerance: 'intersect'
32+
scope: "default",
33+
tolerance: "intersect"
3434
},
3535
_create: function() {
3636

@@ -70,7 +70,7 @@ $.widget("ui.droppable", {
7070

7171
_setOption: function(key, value) {
7272

73-
if(key === 'accept') {
73+
if(key === "accept") {
7474
this.accept = $.isFunction(value) ? value : function(d) {
7575
return d.is(value);
7676
};
@@ -84,7 +84,7 @@ $.widget("ui.droppable", {
8484
this.element.addClass(this.options.activeClass);
8585
}
8686
if(draggable){
87-
this._trigger('activate', event, this.ui(draggable));
87+
this._trigger("activate", event, this.ui(draggable));
8888
}
8989
},
9090

@@ -94,7 +94,7 @@ $.widget("ui.droppable", {
9494
this.element.removeClass(this.options.activeClass);
9595
}
9696
if(draggable){
97-
this._trigger('deactivate', event, this.ui(draggable));
97+
this._trigger("deactivate", event, this.ui(draggable));
9898
}
9999
},
100100

@@ -111,7 +111,7 @@ $.widget("ui.droppable", {
111111
if(this.options.hoverClass) {
112112
this.element.addClass(this.options.hoverClass);
113113
}
114-
this._trigger('over', event, this.ui(draggable));
114+
this._trigger("over", event, this.ui(draggable));
115115
}
116116

117117
},
@@ -129,7 +129,7 @@ $.widget("ui.droppable", {
129129
if(this.options.hoverClass) {
130130
this.element.removeClass(this.options.hoverClass);
131131
}
132-
this._trigger('out', event, this.ui(draggable));
132+
this._trigger("out", event, this.ui(draggable));
133133
}
134134

135135
},
@@ -145,7 +145,7 @@ $.widget("ui.droppable", {
145145
}
146146

147147
this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function() {
148-
var inst = $.data(this, 'ui-droppable');
148+
var inst = $.data(this, "ui-droppable");
149149
if(
150150
inst.options.greedy &&
151151
!inst.options.disabled &&
@@ -165,7 +165,7 @@ $.widget("ui.droppable", {
165165
if(this.options.hoverClass) {
166166
this.element.removeClass(this.options.hoverClass);
167167
}
168-
this._trigger('drop', event, this.ui(draggable));
168+
this._trigger("drop", event, this.ui(draggable));
169169
return this.element;
170170
}
171171

@@ -197,18 +197,18 @@ $.ui.intersect = function(draggable, droppable, toleranceMode) {
197197
t = droppable.offset.top, b = t + droppable.proportions.height;
198198

199199
switch (toleranceMode) {
200-
case 'fit':
200+
case "fit":
201201
return (l <= x1 && x2 <= r && t <= y1 && y2 <= b);
202-
case 'intersect':
202+
case "intersect":
203203
return (l < x1 + (draggable.helperProportions.width / 2) && // Right Half
204204
x2 - (draggable.helperProportions.width / 2) < r && // Left Half
205205
t < y1 + (draggable.helperProportions.height / 2) && // Bottom Half
206206
y2 - (draggable.helperProportions.height / 2) < b ); // Top Half
207-
case 'pointer':
207+
case "pointer":
208208
draggableLeft = ((draggable.positionAbs || draggable.position.absolute).left + (draggable.clickOffset || draggable.offset.click).left);
209209
draggableTop = ((draggable.positionAbs || draggable.position.absolute).top + (draggable.clickOffset || draggable.offset.click).top);
210210
return isOverAxis( draggableTop, t, droppable.proportions.height ) && isOverAxis( draggableLeft, l, droppable.proportions.width );
211-
case 'touch':
211+
case "touch":
212212
return (
213213
(y1 >= t && y1 <= b) || // Top edge touching
214214
(y2 >= t && y2 <= b) || // Bottom edge touching
@@ -229,7 +229,7 @@ $.ui.intersect = function(draggable, droppable, toleranceMode) {
229229
*/
230230
$.ui.ddmanager = {
231231
current: null,
232-
droppables: { 'default': [] },
232+
droppables: { "default": [] },
233233
prepareOffsets: function(t, event) {
234234

235235
var i, j,
@@ -314,37 +314,37 @@ $.ui.ddmanager = {
314314

315315
var parentInstance, scope, parent,
316316
intersects = $.ui.intersect(draggable, this, this.options.tolerance),
317-
c = !intersects && this.isover ? 'isout' : (intersects && !this.isover ? 'isover' : null);
317+
c = !intersects && this.isover ? "isout" : (intersects && !this.isover ? "isover" : null);
318318
if(!c) {
319319
return;
320320
}
321321

322322
if (this.options.greedy) {
323323
// find droppable parents with same scope
324324
scope = this.options.scope;
325-
parent = this.element.parents(':data(ui-droppable)').filter(function () {
326-
return $.data(this, 'ui-droppable').options.scope === scope;
325+
parent = this.element.parents(":data(ui-droppable)").filter(function () {
326+
return $.data(this, "ui-droppable").options.scope === scope;
327327
});
328328

329329
if (parent.length) {
330-
parentInstance = $.data(parent[0], 'ui-droppable');
331-
parentInstance.greedyChild = (c === 'isover');
330+
parentInstance = $.data(parent[0], "ui-droppable");
331+
parentInstance.greedyChild = (c === "isover");
332332
}
333333
}
334334

335335
// we just moved into a greedy child
336-
if (parentInstance && c === 'isover') {
336+
if (parentInstance && c === "isover") {
337337
parentInstance.isover = false;
338338
parentInstance.isout = true;
339339
parentInstance._out.call(parentInstance, event);
340340
}
341341

342342
this[c] = true;
343-
this[c === 'isout' ? 'isover' : 'isout'] = false;
343+
this[c === "isout" ? "isover" : "isout"] = false;
344344
this[c === "isover" ? "_over" : "_out"].call(this, event);
345345

346346
// we just moved out of a greedy child
347-
if (parentInstance && c === 'isout') {
347+
if (parentInstance && c === "isout") {
348348
parentInstance.isout = false;
349349
parentInstance.isover = true;
350350
parentInstance._over.call(parentInstance, event);

ui/jquery.ui.effect-transfer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ $.effects.effect.transfer = function( o, done ) {
2828
width: target.innerWidth()
2929
},
3030
startPosition = elem.offset(),
31-
transfer = $( '<div class="ui-effects-transfer"></div>' )
31+
transfer = $( "<div class='ui-effects-transfer'></div>" )
3232
.appendTo( document.body )
3333
.addClass( o.className )
3434
.css({

ui/jquery.ui.effect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ $.effects.animateClass = function( value, duration, easing, callback ) {
818818
$.each( arguments, function() {
819819
var el = this.el;
820820
$.each( this.diff, function(key) {
821-
el.css( key, '' );
821+
el.css( key, "" );
822822
});
823823
});
824824

ui/jquery.ui.mouse.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@ $( document ).mouseup( function() {
2121
$.widget("ui.mouse", {
2222
version: "@VERSION",
2323
options: {
24-
cancel: 'input,textarea,button,select,option',
24+
cancel: "input,textarea,button,select,option",
2525
distance: 1,
2626
delay: 0
2727
},
2828
_mouseInit: function() {
2929
var that = this;
3030

3131
this.element
32-
.bind('mousedown.'+this.widgetName, function(event) {
32+
.bind("mousedown."+this.widgetName, function(event) {
3333
return that._mouseDown(event);
3434
})
35-
.bind('click.'+this.widgetName, function(event) {
36-
if (true === $.data(event.target, that.widgetName + '.preventClickEvent')) {
37-
$.removeData(event.target, that.widgetName + '.preventClickEvent');
35+
.bind("click."+this.widgetName, function(event) {
36+
if (true === $.data(event.target, that.widgetName + ".preventClickEvent")) {
37+
$.removeData(event.target, that.widgetName + ".preventClickEvent");
3838
event.stopImmediatePropagation();
3939
return false;
4040
}
@@ -46,11 +46,11 @@ $.widget("ui.mouse", {
4646
// TODO: make sure destroying one instance of mouse doesn't mess with
4747
// other instances of mouse
4848
_mouseDestroy: function() {
49-
this.element.unbind('.'+this.widgetName);
49+
this.element.unbind("."+this.widgetName);
5050
if ( this._mouseMoveDelegate ) {
5151
$(document)
52-
.unbind('mousemove.'+this.widgetName, this._mouseMoveDelegate)
53-
.unbind('mouseup.'+this.widgetName, this._mouseUpDelegate);
52+
.unbind("mousemove."+this.widgetName, this._mouseMoveDelegate)
53+
.unbind("mouseup."+this.widgetName, this._mouseUpDelegate);
5454
}
5555
},
5656

@@ -88,8 +88,8 @@ $.widget("ui.mouse", {
8888
}
8989

9090
// Click event may never have fired (Gecko & Opera)
91-
if (true === $.data(event.target, this.widgetName + '.preventClickEvent')) {
92-
$.removeData(event.target, this.widgetName + '.preventClickEvent');
91+
if (true === $.data(event.target, this.widgetName + ".preventClickEvent")) {
92+
$.removeData(event.target, this.widgetName + ".preventClickEvent");
9393
}
9494

9595
// these delegates are required to keep context
@@ -100,8 +100,8 @@ $.widget("ui.mouse", {
100100
return that._mouseUp(event);
101101
};
102102
$(document)
103-
.bind('mousemove.'+this.widgetName, this._mouseMoveDelegate)
104-
.bind('mouseup.'+this.widgetName, this._mouseUpDelegate);
103+
.bind("mousemove."+this.widgetName, this._mouseMoveDelegate)
104+
.bind("mouseup."+this.widgetName, this._mouseUpDelegate);
105105

106106
event.preventDefault();
107107

@@ -131,14 +131,14 @@ $.widget("ui.mouse", {
131131

132132
_mouseUp: function(event) {
133133
$(document)
134-
.unbind('mousemove.'+this.widgetName, this._mouseMoveDelegate)
135-
.unbind('mouseup.'+this.widgetName, this._mouseUpDelegate);
134+
.unbind("mousemove."+this.widgetName, this._mouseMoveDelegate)
135+
.unbind("mouseup."+this.widgetName, this._mouseUpDelegate);
136136

137137
if (this._mouseStarted) {
138138
this._mouseStarted = false;
139139

140140
if (event.target === this._mouseDownEvent.target) {
141-
$.data(event.target, this.widgetName + '.preventClickEvent', true);
141+
$.data(event.target, this.widgetName + ".preventClickEvent", true);
142142
}
143143

144144
this._mouseStop(event);

0 commit comments

Comments
 (0)