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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mount-observer",
3
- "version": "0.0.100",
3
+ "version": "0.0.101",
4
4
  "description": "Observe and act on css matches.",
5
5
  "main": "MountObserver.js",
6
6
  "module": "MountObserver.js",
@@ -43,6 +43,7 @@ export interface Specifier {
43
43
  ish?: boolean;
44
44
  //element to observe must be a shadowed custom element host.
45
45
  host?: boolean;
46
+ self?: boolean;
46
47
  }
47
48
 
48
49
 
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 instanceof EventTarget) {
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 instanceof EventTarget) {
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