@expressen/tallahassee
Advanced tools
Comparing version 11.0.4 to 11.0.5
@@ -10,3 +10,3 @@ "use strict"; | ||
const {Event} = require("./Events"); | ||
const {getElementsByClassName, getElementsByTagName} = require("./HTMLCollection"); | ||
const {HTMLCollection, getElementsByClassName, getElementsByTagName} = require("./HTMLCollection"); | ||
@@ -102,4 +102,3 @@ const inputElements = ["INPUT", "BUTTON", "TEXTAREA"]; | ||
get children() { | ||
if (!this.$elm) return []; | ||
return this.$elm.children().map((_, e) => this._getElement(e)).toArray(); | ||
return new HTMLCollection(this, "> *"); | ||
} | ||
@@ -217,3 +216,3 @@ get innerHTML() { | ||
get scrollWidth() { | ||
return this.children.reduce((acc, el) => { | ||
return Array.from(this.children).reduce((acc, el) => { | ||
acc += el.getBoundingClientRect().width; | ||
@@ -224,3 +223,3 @@ return acc; | ||
get scrollHeight() { | ||
return this.children.reduce((acc, el) => { | ||
return Array.from(this.children).reduce((acc, el) => { | ||
acc += el.getBoundingClientRect().height; | ||
@@ -227,0 +226,0 @@ return acc; |
{ | ||
"name": "@expressen/tallahassee", | ||
"version": "11.0.4", | ||
"version": "11.0.5", | ||
"description": "Expressen client testing framework", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
90757
45
2489