aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Schmitz <arschmitz@gmail.com>2015-08-24 23:11:16 -0400
committerAlexander Schmitz <arschmitz@gmail.com>2015-09-11 08:36:41 -0400
commit806c2a46065bab0ee732a6e1d4141b25dc9a7bc6 (patch)
tree8def8ec248056ddba718e01955b43e2bf03bc581
parent013a411a482468b06159fa85e932236df152fb9c (diff)
downloadjquery-ui-806c2a46065bab0ee732a6e1d4141b25dc9a7bc6.tar.gz
jquery-ui-806c2a46065bab0ee732a6e1d4141b25dc9a7bc6.zip
Widget: Update to use camelCase identifiers
-rw-r--r--ui/widget.js10
-rw-r--r--ui/widgets/datepicker.js1
2 files changed, 6 insertions, 5 deletions
diff --git a/ui/widget.js b/ui/widget.js
index ab062cfb4..183d455b6 100644
--- a/ui/widget.js
+++ b/ui/widget.js
@@ -25,8 +25,8 @@
}
}( function( $ ) {
-var widget_uuid = 0,
- widget_slice = Array.prototype.slice;
+var widgetUuid = 0,
+ widgetSlice = Array.prototype.slice;
$.cleanData = ( function( orig ) {
return function( elems ) {
@@ -175,7 +175,7 @@ $.widget = function( name, base, prototype ) {
};
$.widget.extend = function( target ) {
- var input = widget_slice.call( arguments, 1 ),
+ var input = widgetSlice.call( arguments, 1 ),
inputIndex = 0,
inputLength = input.length,
key,
@@ -207,7 +207,7 @@ $.widget.bridge = function( name, object ) {
var fullName = object.prototype.widgetFullName || name;
$.fn[ name ] = function( options ) {
var isMethodCall = typeof options === "string",
- args = widget_slice.call( arguments, 1 ),
+ args = widgetSlice.call( arguments, 1 ),
returnValue = this;
if ( isMethodCall ) {
@@ -274,7 +274,7 @@ $.Widget.prototype = {
_createWidget: function( options, element ) {
element = $( element || this.defaultElement || this )[ 0 ];
this.element = $( element );
- this.uuid = widget_uuid++;
+ this.uuid = widgetUuid++;
this.eventNamespace = "." + this.widgetName + this.uuid;
this.bindings = $();
diff --git a/ui/widgets/datepicker.js b/ui/widgets/datepicker.js
index ca69d39e5..4f14d7b23 100644
--- a/ui/widgets/datepicker.js
+++ b/ui/widgets/datepicker.js
@@ -1,3 +1,4 @@
+/* jscs:disable requireCamelCaseOrUpperCaseIdentifiers */
/*!
* jQuery UI Datepicker @VERSION
* http://jqueryui.com