mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-10 18:52:19 +00:00
"self." is only added to instance variables when compiling an instance method
This commit is contained in:
1 parent
0a573f9da1
commit
0dd98b56bc
1 file changed
+1
-1
@@ -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