Skip to content

Commit ffd2fbf

Browse files
committed
Core: Fix style issues
Closes gh-1496
1 parent 1e266bb commit ffd2fbf

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

ui/core.js

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
//>>docs: http://api.jqueryui.com/category/ui-core/
1515
//>>demos: http://jqueryui.com/
1616

17-
(function( factory ) {
17+
( function( factory ) {
1818
if ( typeof define === "function" && define.amd ) {
1919

2020
// AMD. Register as an anonymous module.
@@ -24,7 +24,7 @@
2424
// Browser globals
2525
factory( jQuery );
2626
}
27-
}(function( $ ) {
27+
}( function( $ ) {
2828

2929
// $.ui might exist from components with no dependencies, e.g., $.ui.position
3030
$.ui = $.ui || {};
@@ -75,10 +75,10 @@ $.extend( $.ui, {
7575
$( element ).blur();
7676
}
7777
}
78-
});
78+
} );
7979

8080
// plugins
81-
$.fn.extend({
81+
$.fn.extend( {
8282
scrollParent: function( includeHidden ) {
8383
var position = this.css( "position" ),
8484
excludeStaticParent = position === "absolute",
@@ -89,31 +89,31 @@ $.fn.extend({
8989
return false;
9090
}
9191
return overflowRegex.test( parent.css( "overflow" ) + parent.css( "overflow-y" ) + parent.css( "overflow-x" ) );
92-
}).eq( 0 );
92+
} ).eq( 0 );
9393

9494
return position === "fixed" || !scrollParent.length ? $( this[ 0 ].ownerDocument || document ) : scrollParent;
9595
},
9696

97-
uniqueId: (function() {
97+
uniqueId: ( function() {
9898
var uuid = 0;
9999

100100
return function() {
101-
return this.each(function() {
101+
return this.each( function() {
102102
if ( !this.id ) {
103103
this.id = "ui-id-" + ( ++uuid );
104104
}
105-
});
105+
} );
106106
};
107-
})(),
107+
} )(),
108108

109109
removeUniqueId: function() {
110-
return this.each(function() {
110+
return this.each( function() {
111111
if ( /^ui-id-\d+$/.test( this.id ) ) {
112112
$( this ).removeAttr( "id" );
113113
}
114-
});
114+
} );
115115
}
116-
});
116+
} );
117117

118118
// selectors
119119
function focusable( element, isTabIndexNotNaN ) {
@@ -132,25 +132,25 @@ function focusable( element, isTabIndexNotNaN ) {
132132
!element.disabled :
133133
"a" === nodeName ?
134134
element.href || isTabIndexNotNaN :
135-
isTabIndexNotNaN) &&
135+
isTabIndexNotNaN ) &&
136136
// the element and all of its ancestors must be visible
137137
visible( element );
138138
}
139139

140140
function visible( element ) {
141141
return $.expr.filters.visible( element ) &&
142-
!$( element ).parents().addBack().filter(function() {
142+
!$( element ).parents().addBack().filter( function() {
143143
return $.css( this, "visibility" ) === "hidden";
144-
}).length;
144+
} ).length;
145145
}
146146

147147
$.extend( $.expr[ ":" ], {
148148
data: $.expr.createPseudo ?
149-
$.expr.createPseudo(function( dataName ) {
149+
$.expr.createPseudo( function( dataName ) {
150150
return function( elem ) {
151151
return !!$.data( elem, dataName );
152152
};
153-
}) :
153+
} ) :
154154
// support: jQuery <1.8
155155
function( elem, i, match ) {
156156
return !!$.data( elem, match[ 3 ] );
@@ -165,7 +165,7 @@ $.extend( $.expr[ ":" ], {
165165
isTabIndexNaN = isNaN( tabIndex );
166166
return ( isTabIndexNaN || tabIndex >= 0 ) && focusable( element, !isTabIndexNaN );
167167
}
168-
});
168+
} );
169169

170170
// support: jQuery 1.7 only
171171
// Not a great way to check versions, but since we only support 1.7+ and only
@@ -197,7 +197,7 @@ if ( $.fn.jquery.substring( 0, 3 ) === "1.7" ) {
197197
if ( margin ) {
198198
size -= parseFloat( $.css( elem, "margin" + this ) ) || 0;
199199
}
200-
});
200+
} );
201201
return size;
202202
}
203203

@@ -206,21 +206,21 @@ if ( $.fn.jquery.substring( 0, 3 ) === "1.7" ) {
206206
return orig[ "inner" + name ].call( this );
207207
}
208208

209-
return this.each(function() {
209+
return this.each( function() {
210210
$( this ).css( type, reduce( this, size ) + "px" );
211-
});
211+
} );
212212
};
213213

214-
$.fn[ "outer" + name] = function( size, margin ) {
214+
$.fn[ "outer" + name ] = function( size, margin ) {
215215
if ( typeof size !== "number" ) {
216216
return orig[ "outer" + name ].call( this, size );
217217
}
218218

219-
return this.each(function() {
220-
$( this).css( type, reduce( this, size, true, margin ) + "px" );
221-
});
219+
return this.each( function() {
220+
$( this ).css( type, reduce( this, size, true, margin ) + "px" );
221+
} );
222222
};
223-
});
223+
} );
224224

225225
$.fn.addBack = function( selector ) {
226226
return this.add( selector == null ?
@@ -232,23 +232,23 @@ if ( $.fn.jquery.substring( 0, 3 ) === "1.7" ) {
232232
// deprecated
233233
$.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
234234

235-
$.fn.extend({
236-
disableSelection: (function() {
235+
$.fn.extend( {
236+
disableSelection: ( function() {
237237
var eventType = "onselectstart" in document.createElement( "div" ) ?
238238
"selectstart" :
239239
"mousedown";
240240

241241
return function() {
242242
return this.bind( eventType + ".ui-disableSelection", function( event ) {
243243
event.preventDefault();
244-
});
244+
} );
245245
};
246-
})(),
246+
} )(),
247247

248248
enableSelection: function() {
249249
return this.unbind( ".ui-disableSelection" );
250250
}
251-
});
251+
} );
252252

253253
// $.ui.plugin is deprecated. Use $.widget() extensions instead.
254254
$.ui.plugin = {
@@ -280,4 +280,4 @@ $.ui.plugin = {
280280
}
281281
};
282282

283-
}));
283+
} ) );

0 commit comments

Comments
 (0)