Skip to content

Commit 806c2a4

Browse files
committed
Widget: Update to use camelCase identifiers
1 parent 013a411 commit 806c2a4

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

ui/widget.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
}
2626
}( function( $ ) {
2727

28-
var widget_uuid = 0,
29-
widget_slice = Array.prototype.slice;
28+
var widgetUuid = 0,
29+
widgetSlice = Array.prototype.slice;
3030

3131
$.cleanData = ( function( orig ) {
3232
return function( elems ) {
@@ -175,7 +175,7 @@ $.widget = function( name, base, prototype ) {
175175
};
176176

177177
$.widget.extend = function( target ) {
178-
var input = widget_slice.call( arguments, 1 ),
178+
var input = widgetSlice.call( arguments, 1 ),
179179
inputIndex = 0,
180180
inputLength = input.length,
181181
key,
@@ -207,7 +207,7 @@ $.widget.bridge = function( name, object ) {
207207
var fullName = object.prototype.widgetFullName || name;
208208
$.fn[ name ] = function( options ) {
209209
var isMethodCall = typeof options === "string",
210-
args = widget_slice.call( arguments, 1 ),
210+
args = widgetSlice.call( arguments, 1 ),
211211
returnValue = this;
212212

213213
if ( isMethodCall ) {
@@ -274,7 +274,7 @@ $.Widget.prototype = {
274274
_createWidget: function( options, element ) {
275275
element = $( element || this.defaultElement || this )[ 0 ];
276276
this.element = $( element );
277-
this.uuid = widget_uuid++;
277+
this.uuid = widgetUuid++;
278278
this.eventNamespace = "." + this.widgetName + this.uuid;
279279

280280
this.bindings = $();

ui/widgets/datepicker.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* jscs:disable requireCamelCaseOrUpperCaseIdentifiers */
12
/*!
23
* jQuery UI Datepicker @VERSION
34
* http://jqueryui.com

0 commit comments

Comments
 (0)