vsn 0.1.88 → 0.1.89
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/demo/vsn.js +2 -2
- package/dist/DOM.js +5 -3
- package/dist/DOM.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/vsn.min.js +2 -2
- package/package.json +1 -1
- package/src/DOM.ts +6 -4
- package/src/version.ts +1 -1
package/package.json
CHANGED
package/src/DOM.ts
CHANGED
|
@@ -199,19 +199,21 @@ export class DOM extends EventDispatcher {
|
|
|
199
199
|
const newTags: Tag[] = [];
|
|
200
200
|
const toBuild: HTMLElement[] = [];
|
|
201
201
|
|
|
202
|
-
const checkElement = (e: HTMLElement) => {
|
|
202
|
+
const checkElement = (e: HTMLElement): boolean => {
|
|
203
203
|
if (ElementHelper.hasVisionAttribute(e)) {
|
|
204
204
|
if (
|
|
205
205
|
(!forComponent && e.hasAttribute('slot'))
|
|
206
|
-
) return;
|
|
207
|
-
if (this.queued.indexOf(e) > -1) return;
|
|
206
|
+
) return false;
|
|
207
|
+
if (this.queued.indexOf(e) > -1) return false;
|
|
208
208
|
this.queued.push(e);
|
|
209
209
|
toBuild.push(e);
|
|
210
210
|
}
|
|
211
|
+
|
|
212
|
+
return true;
|
|
211
213
|
}
|
|
212
214
|
const scanChildren = (e: HTMLElement) => {
|
|
213
215
|
for (const element of Array.from(e.children) as HTMLElement[]) {
|
|
214
|
-
checkElement(element);
|
|
216
|
+
if (!checkElement(element)) continue;
|
|
215
217
|
if (element.tagName.toLowerCase() !== 'template')
|
|
216
218
|
scanChildren(element);
|
|
217
219
|
}
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.1.
|
|
1
|
+
export const VERSION = '0.1.89';
|
|
2
2
|
|