1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

super is now possible in nodes/Expressions, where it wasn't possible before.

This commit is contained in:
Jeremy Ashkenas 2010-02-27 19:42:10 -05:00
parent b5c9d779bd
commit 9f46c306e5
2 changed files with 2 additions and 2 deletions

View file

@ -233,7 +233,7 @@
};
Expressions.prototype.compile = function compile(o) {
o = o || {};
return o.scope ? BaseNode.prototype.compile.call(this, o) : this.compile_root(o);
return o.scope ? Expressions.__superClass__.compile.call(this, o) : this.compile_root(o);
};
// Compile each expression in the Expressions body.
Expressions.prototype.compile_node = function compile_node(o) {

View file

@ -152,7 +152,7 @@ exports.Expressions: class Expressions extends BaseNode
compile: (o) ->
o ||= {}
if o.scope then BaseNode::compile.call(this, o) else @compile_root(o)
if o.scope then super(o) else @compile_root(o)
# Compile each expression in the Expressions body.
compile_node: (o) ->