|
1 |
| -/*! jQuery UI - v1.13.2 - 2023-02-09 |
2 |
| -* http://jqueryui.com |
| 1 | +/*! jQuery UI - v1.14.1 - 2024-10-30 |
| 2 | +* https://jqueryui.com |
3 | 3 | * Includes: widget.js
|
4 |
| -* Copyright jQuery Foundation and other contributors; Licensed MIT */ |
| 4 | +* Copyright OpenJS Foundation and other contributors; Licensed MIT */ |
5 | 5 |
|
6 | 6 | ( function( factory ) {
|
7 | 7 | "use strict";
|
8 |
| - |
| 8 | + |
9 | 9 | if ( typeof define === "function" && define.amd ) {
|
10 | 10 |
|
11 | 11 | // AMD. Register as an anonymous module.
|
|
20 | 20 |
|
21 | 21 | $.ui = $.ui || {};
|
22 | 22 |
|
23 |
| -var version = $.ui.version = "1.13.2"; |
| 23 | +var version = $.ui.version = "1.14.1"; |
24 | 24 |
|
25 | 25 |
|
26 | 26 | /*!
|
27 |
| - * jQuery UI Widget 1.13.2 |
28 |
| - * http://jqueryui.com |
| 27 | + * jQuery UI Widget 1.14.1 |
| 28 | + * https://jqueryui.com |
29 | 29 | *
|
30 |
| - * Copyright jQuery Foundation and other contributors |
| 30 | + * Copyright OpenJS Foundation and other contributors |
31 | 31 | * Released under the MIT license.
|
32 |
| - * http://jquery.org/license |
| 32 | + * https://jquery.org/license |
33 | 33 | */
|
34 | 34 |
|
35 | 35 | //>>label: Widget
|
36 | 36 | //>>group: Core
|
37 | 37 | //>>description: Provides a factory for creating stateful widgets with a common API.
|
38 |
| -//>>docs: http://api.jqueryui.com/jQuery.widget/ |
39 |
| -//>>demos: http://jqueryui.com/widget/ |
| 38 | +//>>docs: https://api.jqueryui.com/jQuery.widget/ |
| 39 | +//>>demos: https://jqueryui.com/widget/ |
40 | 40 |
|
41 | 41 |
|
42 | 42 | var widgetUuid = 0;
|
@@ -67,6 +67,9 @@ $.widget = function( name, base, prototype ) {
|
67 | 67 |
|
68 | 68 | var namespace = name.split( "." )[ 0 ];
|
69 | 69 | name = name.split( "." )[ 1 ];
|
| 70 | + if ( name === "__proto__" || name === "constructor" ) { |
| 71 | + return $.error( "Invalid widget name: " + name ); |
| 72 | + } |
70 | 73 | var fullName = namespace + "-" + name;
|
71 | 74 |
|
72 | 75 | if ( !prototype ) {
|
|
0 commit comments