 
   setLibraryIcon: (prefix, icon) ->
     @libraryIcons[prefix] = icon
+    return
 
   normalizeName: (packageId, name) ->
     prefix = @getModulePrefix packageId
     fullName = "#{prefix}/#{name}"
     fullName = name unless packageId
-    fullName
+    return fullName
 
   # ### Registering components at runtime
   #

  load: (name, callback, metadata) ->
    unless @ready
      @listComponents (err) =>
        return callback err if err
        @load name, callback, metadata
      return


  # the environment has a CoffeeScript compiler loaded.
  setSource: (packageId, name, source, language, callback) ->
    unless registerLoader.setSource
      callback new Error 'setSource not allowed'
      return

    unless @ready
      @listComponents (err) =>
        if err
          callback err
          return
        @setSource packageId, name, source, language, callback
      return

    registerLoader.setSource @, packageId, name, source, language, callback
    return

  # `getSource` allows fetching the source code of a registered
  # component as a string.
  getSource: (name, callback) ->
    unless registerLoader.getSource
      callback new Error 'getSource not allowed'
      return
    unless @ready
      @listComponents (err) =>
        if err
          callback err
          return
        @getSource name, callback
      return

    registerLoader.getSource @, name, callback
    return

  clear: ->
    @components = null
    @ready = false
    @processing = false
    return

exports.ComponentLoader = ComponentLoader
