Skip to content

Commit 242e3f8

Browse files
AC-1544: Upgrade jquery-ui to the latest version 1.13.0
1 parent 1640069 commit 242e3f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/web/jquery/jquery-ui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
constructor = $[ namespace ][ name ] = function( options, element ) {
8989

9090
// Allow instantiation without "new" keyword
91-
if ( !this._createWidget ) {
91+
if ( !this || !this._createWidget ) {
9292
return new constructor( options, element );
9393
}
9494

lib/web/jquery/ui-modules/widget.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ $.widget = function( name, base, prototype ) {
7777
constructor = $[ namespace ][ name ] = function( options, element ) {
7878

7979
// Allow instantiation without "new" keyword
80-
if ( !this._createWidget ) {
80+
if ( !this || !this._createWidget ) {
8181
return new constructor( options, element );
8282
}
8383

0 commit comments

Comments
 (0)