vsn 0.1.82 → 0.1.83

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/demo.html CHANGED
@@ -84,23 +84,39 @@
84
84
 
85
85
  <template vsn-component:test-component>
86
86
  <script vsn-script type="text/vsn">
87
- class .test-class {
87
+ class test-component {
88
88
  func construct() {
89
- log('hmm?');
89
+ log(?>(.test-class button));
90
90
  $color = "#ff00ff";
91
91
  }
92
- class button {
92
+
93
+ class .test-class {
94
+ func construct() {
95
+ log('huh');
96
+ $color = "#ff00ff";
97
+ }
98
+
99
+ class button {
100
+ func construct() {
101
+
102
+ }
103
+
104
+ on click() {
105
+ @class ~ 'huh';
106
+ }
107
+ }
108
+ }
109
+
110
+ class .huh {
93
111
  func construct() {
112
+ log('construct');
94
113
  $color = "#ff00ff";
95
114
  }
96
-
97
- on click() {
98
- log(@class);
99
- @class -= 'test-class';
100
- @class ~ 'huh';
101
- log(@class);
115
+ func deconstruct() {
116
+ log('deconstruct');
117
+ $color = "#ffff00";
102
118
  }
103
- }
119
+ }
104
120
  }
105
121
  </script>
106
122
  <div class="test-class">
@@ -111,7 +127,8 @@
111
127
  </div>
112
128
  </template>
113
129
 
114
- <test-component></test-component>
130
+ <test-component vsn-name="asd"></test-component>
131
+ <test-component vsn-name="dsf"></test-component>
115
132
 
116
133
  <template vsn-template id="vsn-template">
117
134
  <span>Hello, world!</span>