Skip to content

Commit

Permalink
enhancement for #1380 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelficarra committed May 25, 2011
1 parent e4f47a0 commit 042f7ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/nodes.coffee
Expand Up @@ -598,7 +598,7 @@ exports.Access = class Access extends Base

compile: (o) ->
name = @name.compile o
@proto + if IS_STRING.test name then "[#{name}]" else ".#{name}"
@proto + if IDENTIFIER.test name then ".#{name}" else "[#{name}]"

isComplex: NO

Expand Down Expand Up @@ -932,6 +932,7 @@ exports.Assign = class Assign extends Base
o.scope.add name, 'var'
else
o.scope.find name
console.log @variable.constructor.name, name
if @value instanceof Code and match = METHOD_DEF.exec name
@value.klass = match[1] if match[1]
@value.name = match[2] ? match[3] ? match[4]
Expand Down

1 comment on commit 042f7ec

@michaelficarra
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dammit, pushed the wrong commit. This has a console.log in it. Pushing a proper fix...

Please sign in to comment.