mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-14 22:51:28 +00:00
"self." is only added to instance variables when compiling an instance method
This commit is contained in:
@@ -692,7 +692,7 @@ MessageSendExpression: function(node, st, c) {
|
||||
st.compiler.lastPos = node.end;
|
||||
},
|
||||
Identifier: function(node, st, c) {
|
||||
if (!st.secondMemberExpression)
|
||||
if (st.currentMethodType() === "-" && !st.secondMemberExpression)
|
||||
{
|
||||
var identifier = node.name,
|
||||
lvar = st.getLvarForCurrentMethod(identifier),
|
||||
|
||||
Reference in New Issue
Block a user