vsn 0.1.133 → 0.1.134

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.
Files changed (42) hide show
  1. package/demo/examples/cascading-function-sheets.html +2 -11
  2. package/demo/memory-leak-test.html +10 -2
  3. package/demo/resources/xhr-memory-leak-test.html +1 -1
  4. package/demo/vsn.js +2 -2
  5. package/dist/AST/ClassNode.js +23 -36
  6. package/dist/AST/ClassNode.js.map +1 -1
  7. package/dist/AST.js +1 -1
  8. package/dist/AST.js.map +1 -1
  9. package/dist/Attribute.d.ts +1 -0
  10. package/dist/Attribute.js +5 -0
  11. package/dist/Attribute.js.map +1 -1
  12. package/dist/DOM/DOMObject.d.ts +3 -0
  13. package/dist/DOM/DOMObject.js +8 -0
  14. package/dist/DOM/DOMObject.js.map +1 -1
  15. package/dist/EventDispatcher.d.ts +1 -0
  16. package/dist/EventDispatcher.js +81 -31
  17. package/dist/EventDispatcher.js.map +1 -1
  18. package/dist/Scope/ScopeDataAbstract.d.ts +1 -0
  19. package/dist/Scope/ScopeDataAbstract.js +45 -26
  20. package/dist/Scope/ScopeDataAbstract.js.map +1 -1
  21. package/dist/Scope/properties/Property.d.ts +1 -0
  22. package/dist/Scope/properties/Property.js +6 -0
  23. package/dist/Scope/properties/Property.js.map +1 -1
  24. package/dist/Scope.d.ts +1 -1
  25. package/dist/Scope.js +10 -4
  26. package/dist/Scope.js.map +1 -1
  27. package/dist/Tag.d.ts +1 -0
  28. package/dist/Tag.js +27 -34
  29. package/dist/Tag.js.map +1 -1
  30. package/dist/version.d.ts +1 -1
  31. package/dist/version.js +1 -1
  32. package/package.json +1 -1
  33. package/src/AST/ClassNode.ts +7 -9
  34. package/src/AST.ts +1 -1
  35. package/src/Attribute.ts +6 -0
  36. package/src/DOM/DOMObject.ts +10 -0
  37. package/src/EventDispatcher.ts +23 -1
  38. package/src/Scope/ScopeDataAbstract.ts +9 -0
  39. package/src/Scope/properties/Property.ts +7 -0
  40. package/src/Scope.ts +11 -5
  41. package/src/Tag.ts +15 -9
  42. package/src/version.ts +1 -1
@@ -26,18 +26,9 @@
26
26
  }
27
27
  }
28
28
 
29
- class #testing {
29
+ class #testing .test {
30
30
  func construct() {
31
- log('#testing construct');
32
- this.a|integer = 0;
33
- log('this.a', this.a);
34
- }
35
-
36
- class .test {
37
- func construct() {
38
- log('.test construct');
39
- ?<(.testing).a += 1;
40
- }
31
+ log('#testing .test');
41
32
  }
42
33
  }
43
34
  </script>
@@ -6,10 +6,18 @@
6
6
  </head>
7
7
  <body vsn-service:xhr="XHR">
8
8
 
9
- <a href="./resources/xhr-memory-leak-test.html" vsn-xhr="#test.@html = '<button>wut?</button>' + response'">Wut?</a>
10
- <a href="./resources/xhr-memory-leak-test.html" vsn-xhr="#test.@html = '<button>huh?</button>' + response'">Huh?</a>
9
+ <a href="./resources/xhr-memory-leak-test.html" vsn-xhr="#test.@html = '<button>wut?</button>' + response">Wut?</a>
10
+ <a href="./resources/xhr-memory-leak-test.html" vsn-xhr="#test.@html = '<button>huh?</button>' + response">Huh?</a>
11
+ <button vsn-on:click="#test.@html = ''">Clear</button>
11
12
  <div id="test"></div>
12
13
 
13
14
  <script type="text/javascript" src="vsn.js"></script>
15
+ <script type="text/vsn" vsn-script>
16
+ class #buttons li button {
17
+ on click() {
18
+ log('wut');
19
+ }
20
+ }
21
+ </script>
14
22
  </body>
15
23
  </html>
@@ -1,4 +1,4 @@
1
- <ul>
1
+ <ul id="buttons">
2
2
  <li><button vsn-on:click="log('hi')">Hi</button></li>
3
3
  <li><button vsn-on:click="log('hi')">Hi</button></li>
4
4
  <li><button vsn-on:click="log('hi')">Hi</button></li>