Skip to content

Commit

Permalink
Merge pull request #132 from jonnor/fix-componentloader-compat
Browse files Browse the repository at this point in the history
Fix componentloader compat
  • Loading branch information
bergie committed Feb 2, 2014
2 parents 5cebeef + 71887d3 commit c747fbb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/ComponentLoader.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,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
5 changes: 4 additions & 1 deletion src/lib/nodejs/ComponentLoader.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ loader = require '../ComponentLoader'
internalSocket = require '../InternalSocket'

# We allow components to be un-compiled CoffeeScript
require 'coffee-script'
CoffeeScript = require 'coffee-script'
if typeof CoffeeScript.register != 'undefined'
CoffeeScript.register()


# Disable NPM logging in normal NoFlo operation
log = require 'npmlog'
Expand Down

0 comments on commit c747fbb

Please sign in to comment.