vsn 0.1.131 → 0.1.132
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/examples/cascading-function-sheets.html +27 -7
- package/demo/examples/item-filtering.html +1 -1
- package/demo/resources/xhr-lazy.html +4 -3
- package/demo/vsn.js +2 -2
- package/dist/AST/AssignmentNode.js.map +1 -1
- package/dist/AST/ClassNode.d.ts +3 -0
- package/dist/AST/ClassNode.js +10 -8
- package/dist/AST/ClassNode.js.map +1 -1
- package/dist/AST/FunctionNode.js +11 -10
- package/dist/AST/FunctionNode.js.map +1 -1
- package/dist/AST/IndexNode.js +0 -1
- package/dist/AST/IndexNode.js.map +1 -1
- package/dist/DOM/AbstractDOM.js +2 -0
- package/dist/DOM/AbstractDOM.js.map +1 -1
- package/dist/DOM/DOMObject.js +3 -0
- package/dist/DOM/DOMObject.js.map +1 -1
- package/dist/Tag.js +15 -9
- package/dist/Tag.js.map +1 -1
- package/dist/demo.min.js +3 -0
- package/dist/demo.min.js.LICENSE.txt +9 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/vsn.min.js +3 -0
- package/dist/vsn.min.js.LICENSE.txt +9 -0
- package/package.json +1 -1
- package/src/AST/AssignmentNode.ts +1 -0
- package/src/AST/ClassNode.ts +9 -6
- package/src/AST/FunctionNode.ts +11 -9
- package/src/AST/IndexNode.ts +0 -1
- package/src/DOM/AbstractDOM.ts +1 -0
- package/src/DOM/DOMObject.ts +3 -0
- package/src/Tag.ts +15 -10
- package/src/version.ts +1 -1
- package/test/AST/ClassNode.spec.ts +5 -5
|
@@ -9,20 +9,40 @@
|
|
|
9
9
|
<body>
|
|
10
10
|
|
|
11
11
|
<script type="text/javascript" src="../vsn.js"></script>
|
|
12
|
+
|
|
12
13
|
<script type="text/vsn" vsn-script>
|
|
13
|
-
class .
|
|
14
|
+
class .testing {
|
|
15
|
+
func construct() {
|
|
16
|
+
log('.testing construct');
|
|
17
|
+
this.a|integer = 0;
|
|
18
|
+
log('this.a', this.a);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
class .test {
|
|
22
|
+
func construct() {
|
|
23
|
+
log('.test construct');
|
|
24
|
+
?<(.testing).a += 1;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
class #testing {
|
|
14
30
|
func construct() {
|
|
15
|
-
log('
|
|
31
|
+
log('#testing construct');
|
|
32
|
+
this.a|integer = 0;
|
|
33
|
+
log('this.a', this.a);
|
|
16
34
|
}
|
|
17
35
|
|
|
18
|
-
|
|
19
|
-
|
|
36
|
+
class .test {
|
|
37
|
+
func construct() {
|
|
38
|
+
log('.test construct');
|
|
39
|
+
?<(.testing).a += 1;
|
|
40
|
+
}
|
|
20
41
|
}
|
|
21
42
|
}
|
|
22
43
|
</script>
|
|
23
|
-
<div id="test"></div>
|
|
24
|
-
<
|
|
25
|
-
<a href="../resources/xhr-cfs.html" vsn-xhr="#html-container.@html = response;?(#html-header).$color='yellow';" class="btn">XHR</a>
|
|
44
|
+
<div id="testing" class="testing"><span class="test"></span><span class="test"></span><span class="test"></span></div>
|
|
45
|
+
<button vsn-on:click="log(?(.testing).a)">wut</button>
|
|
26
46
|
|
|
27
47
|
</body>
|
|
28
48
|
</html>
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
class input {
|
|
13
13
|
func construct() {
|
|
14
14
|
log('.simple input construct');
|
|
15
|
-
a|float = 0.0;
|
|
15
|
+
this.a|float = 0.0;
|
|
16
|
+
log(this.a);
|
|
16
17
|
@value = 'wut';
|
|
17
18
|
}
|
|
18
19
|
|
|
@@ -22,8 +23,8 @@
|
|
|
22
23
|
|
|
23
24
|
on focus() {
|
|
24
25
|
log(@type);
|
|
25
|
-
a += 0.1;
|
|
26
|
-
log(a);
|
|
26
|
+
this.a += 0.1;
|
|
27
|
+
log(this.a);
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
on mouseenter() {
|