mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Widget: Update to use camelCase identifiers
This commit is contained in:
parent
013a411a48
commit
806c2a4606
10
ui/widget.js
10
ui/widget.js
@ -25,8 +25,8 @@
|
|||||||
}
|
}
|
||||||
}( function( $ ) {
|
}( function( $ ) {
|
||||||
|
|
||||||
var widget_uuid = 0,
|
var widgetUuid = 0,
|
||||||
widget_slice = Array.prototype.slice;
|
widgetSlice = Array.prototype.slice;
|
||||||
|
|
||||||
$.cleanData = ( function( orig ) {
|
$.cleanData = ( function( orig ) {
|
||||||
return function( elems ) {
|
return function( elems ) {
|
||||||
@ -175,7 +175,7 @@ $.widget = function( name, base, prototype ) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
$.widget.extend = function( target ) {
|
$.widget.extend = function( target ) {
|
||||||
var input = widget_slice.call( arguments, 1 ),
|
var input = widgetSlice.call( arguments, 1 ),
|
||||||
inputIndex = 0,
|
inputIndex = 0,
|
||||||
inputLength = input.length,
|
inputLength = input.length,
|
||||||
key,
|
key,
|
||||||
@ -207,7 +207,7 @@ $.widget.bridge = function( name, object ) {
|
|||||||
var fullName = object.prototype.widgetFullName || name;
|
var fullName = object.prototype.widgetFullName || name;
|
||||||
$.fn[ name ] = function( options ) {
|
$.fn[ name ] = function( options ) {
|
||||||
var isMethodCall = typeof options === "string",
|
var isMethodCall = typeof options === "string",
|
||||||
args = widget_slice.call( arguments, 1 ),
|
args = widgetSlice.call( arguments, 1 ),
|
||||||
returnValue = this;
|
returnValue = this;
|
||||||
|
|
||||||
if ( isMethodCall ) {
|
if ( isMethodCall ) {
|
||||||
@ -274,7 +274,7 @@ $.Widget.prototype = {
|
|||||||
_createWidget: function( options, element ) {
|
_createWidget: function( options, element ) {
|
||||||
element = $( element || this.defaultElement || this )[ 0 ];
|
element = $( element || this.defaultElement || this )[ 0 ];
|
||||||
this.element = $( element );
|
this.element = $( element );
|
||||||
this.uuid = widget_uuid++;
|
this.uuid = widgetUuid++;
|
||||||
this.eventNamespace = "." + this.widgetName + this.uuid;
|
this.eventNamespace = "." + this.widgetName + this.uuid;
|
||||||
|
|
||||||
this.bindings = $();
|
this.bindings = $();
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/* jscs:disable requireCamelCaseOrUpperCaseIdentifiers */
|
||||||
/*!
|
/*!
|
||||||
* jQuery UI Datepicker @VERSION
|
* jQuery UI Datepicker @VERSION
|
||||||
* http://jqueryui.com
|
* http://jqueryui.com
|
||||||
|
Loading…
Reference in New Issue
Block a user