jquery-ui/tests/unit/widget
Michał Gołębiowski-Owczarek ed637b04d7
Widget: Make contextless widget construction work
Due to the fact the widget factory code is now in strict mode, the check for
being called without using the `new` keyword started breaking if you save the
widget constructor to a variable before calling it:
```js
var customWidget = $.custom.customWidget;
customWidget( {}, elem );
```
as then `this` is undefined and checking for `this._createWidget` crashes.
Account for that with an additional check.

Fixes gh-2015
Closes gh-2019
2021-11-19 00:47:56 +01:00
..
all.html Tests: Switch to the new qunit-composite module 2015-04-07 09:03:36 -04:00
animation.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
classes.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
core.js Widget: Make contextless widget construction work 2021-11-19 00:47:56 +01:00
extend.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
widget.html Tests: Fix AMD loading in IE8 2015-04-17 12:13:38 -04:00