We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 59173e9 + 58a7857 commit f44b1c8Copy full SHA for f44b1c8
example/game/crafty/js/crafty.js
@@ -4303,7 +4303,7 @@ Crafty.storage = (function () {
4303
* Is `Object.defineProperty` supported?
4304
*/
4305
support.defineProperty = (function () {
4306
- if (!'defineProperty' in Object) return false;
+ if (!('defineProperty' in Object)) return false;
4307
try { Object.defineProperty({}, 'x', {}); }
4308
catch (e) { return false };
4309
return true;
0 commit comments