Permalink
Browse files

Only returning empty name if name is undefined, not just falsy

  • Loading branch information...
nvh committed Sep 30, 2016
1 parent 5e2efb4 commit 26585ca238886adb2b20ee752b57bd45c5e9eb78
Showing with 1 addition and 1 deletion.
  1. +1 −1 framer/Layer.coffee
View
@@ -250,7 +250,7 @@ class exports.Layer extends BaseClass
default: ""
get: ->
name = @_getPropertyValue("name")
- return name or ""
+ return name ? ""
set: (value) ->
@_setPropertyValue("name", value)

0 comments on commit 26585ca

Please sign in to comment.