mount-observer 0.0.72 → 0.0.73

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.72",
3
+ "version": "0.0.73",
4
4
  "description": "Observe and act on css matches.",
5
5
  "main": "MountObserver.js",
6
6
  "module": "MountObserver.js",
package/slotkin/wrap.js CHANGED
@@ -1,8 +1,8 @@
1
- const wrapped = Symbol.for('50tzQZt95ECXUtHF7a40og');
1
+ export const wrapped = Symbol.for('50tzQZt95ECXUtHF7a40og');
2
2
  export function wrap(templ, base) {
3
3
  const wasWrapped = templ[wrapped];
4
4
  if (!wasWrapped) {
5
- templ[wrapped] = true;
5
+ templ[wrapped] = base;
6
6
  if (templ.content.childElementCount > 1) {
7
7
  const start = document.createComment(base);
8
8
  templ.content.prepend(start);
package/slotkin/wrap.ts CHANGED
@@ -1,4 +1,4 @@
1
- const wrapped = Symbol.for('50tzQZt95ECXUtHF7a40og');
1
+ export const wrapped = Symbol.for('50tzQZt95ECXUtHF7a40og');
2
2
 
3
3
  export function wrap(
4
4
  templ: HTMLTemplateElement,
@@ -6,7 +6,7 @@ export function wrap(
6
6
  ){
7
7
  const wasWrapped = (<any>templ)[wrapped];
8
8
  if (!wasWrapped) {
9
- (<any>templ)[wrapped] = true;
9
+ (<any>templ)[wrapped] = base;
10
10
  if (templ.content.childElementCount > 1) {
11
11
  const start = document.createComment(base);
12
12
  templ.content.prepend(start);