|
1 |
| -/* |
2 |
| - * jQuery UI Widget 1.10.1+amd |
| 1 | +/*! |
| 2 | + * jQuery UI Widget 1.10.4+amd |
3 | 3 | * https://github.com/blueimp/jQuery-File-Upload
|
4 | 4 | *
|
5 |
| - * Copyright 2013 jQuery Foundation and other contributors |
| 5 | + * Copyright 2014 jQuery Foundation and other contributors |
6 | 6 | * Released under the MIT license.
|
7 | 7 | * http://jquery.org/license
|
8 | 8 | *
|
@@ -115,7 +115,7 @@ $.widget = function( name, base, prototype ) {
|
115 | 115 | // TODO: remove support for widgetEventPrefix
|
116 | 116 | // always use the name + a colon as the prefix, e.g., draggable:start
|
117 | 117 | // don't prefix for widgets that aren't DOM-based
|
118 |
| - widgetEventPrefix: existingConstructor ? basePrototype.widgetEventPrefix : name |
| 118 | + widgetEventPrefix: existingConstructor ? (basePrototype.widgetEventPrefix || name) : name |
119 | 119 | }, proxiedPrototype, {
|
120 | 120 | constructor: constructor,
|
121 | 121 | namespace: namespace,
|
@@ -324,12 +324,12 @@ $.Widget.prototype = {
|
324 | 324 | curOption = curOption[ parts[ i ] ];
|
325 | 325 | }
|
326 | 326 | key = parts.pop();
|
327 |
| - if ( value === undefined ) { |
| 327 | + if ( arguments.length === 1 ) { |
328 | 328 | return curOption[ key ] === undefined ? null : curOption[ key ];
|
329 | 329 | }
|
330 | 330 | curOption[ key ] = value;
|
331 | 331 | } else {
|
332 |
| - if ( value === undefined ) { |
| 332 | + if ( arguments.length === 1 ) { |
333 | 333 | return this.options[ key ] === undefined ? null : this.options[ key ];
|
334 | 334 | }
|
335 | 335 | options[ key ] = value;
|
|
0 commit comments