Merge branch 'master' into node
This commit is contained in:
commit
0d56b89d12
|
@ -346,7 +346,7 @@ module CoffeeScript
|
|||
end
|
||||
|
||||
def properties?
|
||||
return !@properties.empty?
|
||||
return !@properties.empty? || @base.is_a?(ThisNode)
|
||||
end
|
||||
|
||||
def array?
|
||||
|
|
|
@ -13,7 +13,7 @@ SecondChild::func: (string) ->
|
|||
super('two/') + string
|
||||
|
||||
ThirdChild: ->
|
||||
this.array: [1, 2, 3]
|
||||
@array: [1, 2, 3]
|
||||
ThirdChild extends SecondChild
|
||||
ThirdChild::func: (string) ->
|
||||
super('three/') + string
|
||||
|
@ -24,7 +24,7 @@ puts result is 'zero/one/two/three/four'
|
|||
|
||||
|
||||
TopClass: (arg) ->
|
||||
this.prop: 'top-' + arg
|
||||
@prop: 'top-' + arg
|
||||
|
||||
SuperClass: (arg) ->
|
||||
super 'super-' + arg
|
||||
|
|
Loading…
Reference in New Issue