liquidscript 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93358b89fa051538828ed587aaa478796f993676
|
4
|
+
data.tar.gz: bf64eeb97bbdf9cb43150bf94b3d49d79bbba043
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e91ab8b884aa60ed0d52d12f793f0f0b0f0cb13d3fbd060ae9d0345a56ef693dd99560fb280a8d68ea28f63fdf14f4f6b0106fbd34bbf3b039dd4456d2705b92
|
7
|
+
data.tar.gz: 5bf5238837a656e9926809656fd90b3d96d768c6c589fd15886085852ec2e3fbc4e8963502ead086483a15cd0dea5f29bbdd0d5328d21c5e3eac2643bb9acba4
|
@@ -66,8 +66,8 @@ module Liquidscript
|
|
66
66
|
#{class_name}.prototype[#{k.value}] = #{replace(v)};
|
67
67
|
JS
|
68
68
|
when :property
|
69
|
-
if k[1].
|
70
|
-
raise InvalidCodeError.new(
|
69
|
+
if k[1].value != "this"
|
70
|
+
raise InvalidCodeError.new(k[1].value)
|
71
71
|
end
|
72
72
|
|
73
73
|
body.block <<-JS
|
data/lib/liquidscript/version.rb
CHANGED
@@ -8,6 +8,10 @@ data: |
|
|
8
8
|
initialize: -> {
|
9
9
|
"this should be init"
|
10
10
|
}
|
11
|
+
|
12
|
+
this.test: -> {
|
13
|
+
"class method!"
|
14
|
+
}
|
11
15
|
}
|
12
16
|
}
|
13
17
|
|
@@ -28,4 +32,8 @@ compiled: |
|
|
28
32
|
Test.prototype.initialize = function() {
|
29
33
|
"this should be init"
|
30
34
|
};
|
35
|
+
|
36
|
+
Test.test = function() {
|
37
|
+
"class method!"
|
38
|
+
};
|
31
39
|
Something.Test = Test;
|