Improved displayName().

This commit is contained in:
Martin Edenhofer 2012-10-16 13:04:29 +02:00
parent 8a76d83a3e
commit 2e4e6225a1
2 changed files with 3 additions and 2 deletions

View file

@ -40,6 +40,7 @@ class App extends Spine.Controller
# define print name helper # define print name helper
params.P = ( item ) -> params.P = ( item ) ->
return item if !item
if typeof item is 'object' if typeof item is 'object'
if item.displayNameLong if item.displayNameLong
item.displayNameLong() item.displayNameLong()