mount-observer 0.0.100 → 0.0.101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/ts-refs/trans-render/dss/types.d.ts +1 -0
- package/waitForIsh.js +1 -1
- package/waitForIsh.ts +1 -1
package/package.json
CHANGED
package/waitForIsh.js
CHANGED
|
@@ -2,7 +2,7 @@ export function waitForIsh(el) {
|
|
|
2
2
|
return new Promise((resolve, reject) => {
|
|
3
3
|
const ish = el['ish']; // [TODO] should we make this something that can
|
|
4
4
|
// be passed in, more generic function -- waitForProperty?
|
|
5
|
-
if (ish
|
|
5
|
+
if (ish.constructor !== Object) {
|
|
6
6
|
resolve(ish);
|
|
7
7
|
}
|
|
8
8
|
else {
|
package/waitForIsh.ts
CHANGED
|
@@ -2,7 +2,7 @@ export function waitForIsh(el: Element) : Promise<any> {
|
|
|
2
2
|
return new Promise((resolve, reject) => {
|
|
3
3
|
const ish = (<any>el)['ish']; // [TODO] should we make this something that can
|
|
4
4
|
// be passed in, more generic function -- waitForProperty?
|
|
5
|
-
if (ish
|
|
5
|
+
if (ish.constructor !== Object) {
|
|
6
6
|
resolve(ish);
|
|
7
7
|
} else {
|
|
8
8
|
// If the element is not yet defined, wait for it to be defined
|