vsn 0.1.145 → 0.1.146

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.
@@ -8,13 +8,19 @@
8
8
 
9
9
  <a href="./resources/xhr-memory-leak-test.html" vsn-xhr="#test.@html = '<button>wut?</button>' + response;#test.@class += 'open';">Wut?</a>
10
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
11
  <button vsn-on:click="?(#buttons li button).test1();" vsn-if="'open' in #test.@class">Call Test 1</button>
13
12
  <button vsn-on:click="?(#buttons li button).test2();" vsn-if="'open' in #test.@class">Call Test 2</button>
14
- <div id="test"></div>
13
+ <div id="test-container"><div id="test" class="test"></div></div>
15
14
 
16
15
  <script type="text/javascript" src="vsn.js"></script>
17
16
  <script type="text/vsn" vsn-script>
17
+ class #test-container {
18
+ func close() {
19
+ ?>(.test).@html = '';
20
+ #test.@class -= 'open';
21
+ }
22
+ }
23
+
18
24
  class #test {
19
25
  func test() {
20
26
  log('huh?');
@@ -10,3 +10,5 @@
10
10
  <li><button vsn-on:click="log('hi');wait(2);log('wut?');">Hi</button></li>
11
11
  <li><button vsn-on:click="log('hi');wait(2);log('wut?');">Hi</button></li>
12
12
  </ul>
13
+
14
+ <button vsn-on:click="#test-container.close()">Close</button>