@webqit/oohtml 5.0.0 → 5.0.2

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/src/util.js CHANGED
@@ -43,13 +43,13 @@ export function _init( name, $config, $defaults ) {
43
43
  }
44
44
 
45
45
  export function getInternalAttrInteraction( node, attrName ) {
46
- return _wq( node, 'internalAttrInteractions' ).get( attrName );
46
+ return __wq( node, 'realdom', 'internalAttrInteractions' ).get( attrName );
47
47
  }
48
48
  export function internalAttrInteraction( node, attrName, callback ) {
49
- const savedAttrLocking = _wq( node, 'internalAttrInteractions' ).get( attrName );
50
- _wq( node, 'internalAttrInteractions' ).set( attrName, true );
49
+ const savedAttrLocking = __wq( node, 'realdom', 'internalAttrInteractions' ).get( attrName );
50
+ __wq( node, 'realdom', 'internalAttrInteractions' ).set( attrName, true );
51
51
  const value = callback();
52
- _wq( node, 'internalAttrInteractions' ).set( attrName, savedAttrLocking );
52
+ __wq( node, 'realdom', 'internalAttrInteractions' ).set( attrName, savedAttrLocking );
53
53
  return value;
54
54
  }
55
55
 
package/test/ii.html DELETED
@@ -1,11 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <script src="https://unpkg.com/@webqit/oohtml/dist/main.lite.js"></script>
5
- </head>
6
-
7
- <body>
8
-
9
- <demo-component></demo-component>
10
- </body>
11
- </html>
package/test/ii2.html DELETED
@@ -1,24 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <script src="https://unpkg.com/@webqit/oohtml/dist/main.lite.js"></script>
5
- </head>
6
-
7
- <body>
8
- <ul render="#items: (x) of items / 'item' ">
9
- <template def="item" scoped>
10
- <li></li>
11
- </template>
12
- </ul>
13
- <script scoped>
14
- let items = [1,2,3];
15
- this.bind({ items });
16
- setTimeout(() => {
17
- //"use live";
18
- items.push(items.length + 1);
19
- //console.log(this);
20
- //webqit.Observer.proxy(this.bindings.items).push(items.length + 1);
21
- }, 1000);
22
- </script>
23
- </body>
24
- </html>