coffeescripts/shuriken.coffee in shuriken-0.1.2.2 vs coffeescripts/shuriken.coffee in shuriken-0.1.3
- old
+ new
@@ -33,11 +33,11 @@
@children.push child
base.toNSName: (children...) ->
parts: children
current: @
- while current.parent?
- parts.unshift parts
+ while current?
+ parts.unshift current.name
current: current.parent
parts.join "."
base.getNS: (namespace) ->
parts: namespace.split "."
\ No newline at end of file