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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vsn",
3
- "version": "0.1.88",
3
+ "version": "0.1.89",
4
4
  "description": "SEO Friendly Javascript/Typescript Framework",
5
5
  "keywords": [
6
6
  "framework",
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.88';
1
+ export const VERSION = '0.1.89';
2
2