vsn 0.1.143 → 0.1.145

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.
@@ -6,21 +6,37 @@
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>
11
- <button vsn-on:click="#test.@html = ''">Clear</button>
9
+ <a href="./resources/xhr-memory-leak-test.html" vsn-xhr="#test.@html = '<button>wut?</button>' + response;#test.@class += 'open';">Wut?</a>
10
+ <a href="./resources/xhr-memory-leak-test.html" vsn-xhr="#test.@html = '<button>huh?</button>' + response;#test.@class += 'open';">Huh?</a>
11
+ <button vsn-on:click="#test.@html = '';#test.test();#test.@class -= 'open';">Clear</button>
12
+ <button vsn-on:click="?(#buttons li button).test1();" vsn-if="'open' in #test.@class">Call Test 1</button>
13
+ <button vsn-on:click="?(#buttons li button).test2();" vsn-if="'open' in #test.@class">Call Test 2</button>
12
14
  <div id="test"></div>
13
15
 
14
16
  <script type="text/javascript" src="vsn.js"></script>
15
17
  <script type="text/vsn" vsn-script>
18
+ class #test {
19
+ func test() {
20
+ log('huh?');
21
+ }
22
+ }
23
+
16
24
  class #buttons li button {
17
25
  func construct() {
18
- log('this', this);
26
+ this.a = 1;
19
27
  }
20
28
 
21
29
  on click() {
22
30
  log('wut');
23
31
  }
32
+
33
+ func test1() {
34
+ log('testing');
35
+ }
36
+
37
+ func test2() {
38
+ log('more testing');
39
+ }
24
40
  }
25
41
  </script>
26
42
  </body>
@@ -1,4 +1,12 @@
1
1
  <input id="persist-test" vsn-persist="@value" />
2
2
  <ul id="buttons">
3
3
  <li><button vsn-on:click="log('hi');wait(2);log('wut?');">Hi</button></li>
4
+ <li><button vsn-on:click="log('hi');wait(2);log('wut?');">Hi</button></li>
5
+ <li><button vsn-on:click="log('hi');wait(2);log('wut?');">Hi</button></li>
6
+ <li><button vsn-on:click="log('hi');wait(2);log('wut?');">Hi</button></li>
7
+ <li><button vsn-on:click="log('hi');wait(2);log('wut?');">Hi</button></li>
8
+ <li><button vsn-on:click="log('hi');wait(2);log('wut?');">Hi</button></li>
9
+ <li><button vsn-on:click="log('hi');wait(2);log('wut?');">Hi</button></li>
10
+ <li><button vsn-on:click="log('hi');wait(2);log('wut?');">Hi</button></li>
11
+ <li><button vsn-on:click="log('hi');wait(2);log('wut?');">Hi</button></li>
4
12
  </ul>