happy-dom
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -86,8 +86,4 @@ "use strict"; | ||
if (global !== undefined) { | ||
for (var _a = 0, _b = Object.keys(global); _a < _b.length; _a++) { | ||
var key = _b[_a]; | ||
if (typeof _this[key] === 'undefined') { | ||
_this[key] = global[key]; | ||
} | ||
} | ||
var descriptors = Object.getOwnPropertyDescriptors(global); | ||
Object.defineProperties(_this, descriptors); | ||
} | ||
@@ -94,0 +90,0 @@ return _this; |
{ | ||
"name": "happy-dom", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/capricorn86/happy-dom#readme", |
@@ -197,2 +197,3 @@ # Happy DOM | ||
| ------- | ---------- | ---------------- | | ||
| 0.3.1 | 2019-10-07 | Fixes bug where global.Error is undefined. (#6) | ||
| 0.3.0 | 2019-10-06 | Adds support for scrollTop, scrollLeft, scrollTo(), offsetLeft, offsetTop offsetHeight, offsetWidth. | | ||
@@ -199,0 +200,0 @@ | 0.2.16 | 2019-10-06 | Major bug fixes with server side rendering. | |
@@ -76,7 +76,4 @@ import CustomElementRegistry from './html-element/CustomElementRegistry'; | ||
if (global !== undefined) { | ||
for (const key of Object.keys(global)) { | ||
if (typeof this[key] === 'undefined') { | ||
this[key] = global[key]; | ||
} | ||
} | ||
const descriptors = Object.getOwnPropertyDescriptors(global); | ||
Object.defineProperties(this, descriptors); | ||
} | ||
@@ -83,0 +80,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
232
544793
13791