]> source.dussan.org Git - jquery-ui.git/commit
Widget: Fix boolean option when under use strict
authorHrvoje Novosel <hrvoje.novosel@gmail.com>
Wed, 15 Jul 2020 14:10:20 +0000 (16:10 +0200)
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Tue, 6 Oct 2020 12:54:13 +0000 (14:54 +0200)
commit2434dfd45d0805304e1db634d059feaa0bacf358
treea023bd3944a31cd7a5faa82b1f48d9285b2bcbaf
parent6bf38048f30886ae0545bb48df7c5a2011dff2b0
Widget: Fix boolean option when under use strict

Fix for `options === true` when using jQuery UI under `use strict`,
which throws:
```
Uncaught TypeError: Cannot create property 'complete' on boolean 'true'
```
on line:
```js
options.complete = callback;
```

Closes gh-1931
ui/widget.js