jquery-ui/tests
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
..
images All: Optimize png images losslessly using zopflipng 2016-06-06 11:26:06 -04:00
lib Tests: Take development jQuery versions from releases.jquery.com 2021-09-29 19:07:43 +02:00
unit Widget: Make contextless widget construction work 2021-11-19 00:47:56 +01:00
visual Build: Update to the latest version of Grunt & many other packages 2020-10-14 23:55:35 +02:00
.eslintrc.json Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
index.css Theme: Change default widget font-size to 1em 2014-10-24 07:23:31 -07:00
index.html Tests: Load the TestSwarm listener via HTTPS 2021-09-29 17:22:17 +02:00
index.js Tests: Style updates 2015-08-21 08:06:24 -04:00