Skip to content

Commit

Permalink
ComponentLoader: Don't fail on missing getIcon function
Browse files Browse the repository at this point in the history
This can happen when loaded component is using an older version of NoFlo
which does not define the getIcon method.
  • Loading branch information
jonnor committed Feb 1, 2014
1 parent 79baf9a commit 71887d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/ComponentLoader.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class ComponentLoader

setIcon: (name, instance) ->
# See if component has an icon
return if instance.getIcon()
return if not instance.getIcon or instance.getIcon()

# See if library has an icon
[library, componentName] = name.split '/'
Expand Down

0 comments on commit 71887d3

Please sign in to comment.