vsn 0.1.146 → 0.1.147
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/demo/memory-leak-test.html +34 -1
- package/demo/resources/xhr-memory-leak-test.html +1 -1
- package/demo/vsn.js +2 -2
- package/dist/AST/FunctionCallNode.js +22 -22
- package/dist/AST/FunctionCallNode.js.map +1 -1
- package/dist/demo/ServiceDemo.js +1 -0
- package/dist/demo/ServiceDemo.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/src/AST/FunctionCallNode.ts +3 -7
- package/src/demo/ServiceDemo.ts +1 -0
- package/src/version.ts +1 -1
- package/test/AST/FunctionNode.spec.ts +28 -0
- package/test/Controller.spec.ts +0 -8
|
@@ -22,14 +22,19 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
class #test {
|
|
25
|
+
func construct() {
|
|
26
|
+
this.count|integer = 1;
|
|
27
|
+
}
|
|
28
|
+
|
|
25
29
|
func test() {
|
|
26
|
-
log('huh?');
|
|
30
|
+
log('huh?', this.count);
|
|
27
31
|
}
|
|
28
32
|
}
|
|
29
33
|
|
|
30
34
|
class #buttons li button {
|
|
31
35
|
func construct() {
|
|
32
36
|
this.a = 1;
|
|
37
|
+
#test.count += 1;
|
|
33
38
|
}
|
|
34
39
|
|
|
35
40
|
on click() {
|
|
@@ -45,5 +50,33 @@
|
|
|
45
50
|
}
|
|
46
51
|
}
|
|
47
52
|
</script>
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
<script type="text/vsn" vsn-script>
|
|
56
|
+
class .simple-construct {
|
|
57
|
+
func construct() {
|
|
58
|
+
this.a|integer = "15";
|
|
59
|
+
log('####### construct', this.a);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
func test() {
|
|
63
|
+
this.a += 1;
|
|
64
|
+
log('####### testing', this.a);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
</script>
|
|
68
|
+
<div class="simple-construct" id="ele-1" vsn-bind="a"></div>
|
|
69
|
+
<div class="simple-construct" id="ele-2" vsn-bind="a"></div>
|
|
70
|
+
<div class="simple-construct" id="ele-3" vsn-bind="a"></div>
|
|
71
|
+
<div class="simple-construct" id="ele-4" vsn-bind="a"></div>
|
|
72
|
+
<div class="simple-construct" id="ele-5" vsn-bind="a"></div>
|
|
73
|
+
<div class="simple-construct" id="ele-6" vsn-bind="a"></div>
|
|
74
|
+
<div class="simple-construct" id="ele-7" vsn-bind="a"></div>
|
|
75
|
+
<div class="simple-construct" id="ele-8" vsn-bind="a"></div>
|
|
76
|
+
<div class="simple-construct" id="ele-9" vsn-bind="a"></div>
|
|
77
|
+
<div class="simple-construct" id="ele-10" vsn-bind="a"></div>
|
|
78
|
+
|
|
79
|
+
<button vsn-on:click="?(.simple-construct).test()">Test, All</button>
|
|
80
|
+
<button vsn-on:click="#ele-9.test()">Test, Just 9</button>
|
|
48
81
|
</body>
|
|
49
82
|
</html>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<input id="persist-test" vsn-persist="@value" />
|
|
2
2
|
<ul id="buttons">
|
|
3
|
-
<li><button vsn-on:click="
|
|
3
|
+
<li><button vsn-on:click="#test.test();wait(2);log('wut?');">Hi</button></li>
|
|
4
4
|
<li><button vsn-on:click="log('hi');wait(2);log('wut?');">Hi</button></li>
|
|
5
5
|
<li><button vsn-on:click="log('hi');wait(2);log('wut?');">Hi</button></li>
|
|
6
6
|
<li><button vsn-on:click="log('hi');wait(2);log('wut?');">Hi</button></li>
|