     return undefined if skipFunc
 
     # Execute factory function and store it in cache
-    cache[name] = define.apply context, cacheDeps
+    
+    # Special case: Factory is an object and has no dependencies ()
+    if typeof define is 'object' and deps.length is 0
+      cache[name] = define
+    else
+      cache[name] = define.apply context, cacheDeps
 
     # Check queue
     queueList = Object.keys(queue)


  # Map molo function
  root.molo = moloFunc

  # Set path configuration
  root.molo.basePath = ''

    cacheDeps = []

    for i in deps
      # Need to check for hasOwnProperty
      # Checking for cache[i] is not strict enough
      # because a module could have undefined, null, 0 or an empty string
      # as its export value
      if cache.hasOwnProperty(i)
        cacheDeps.push cache[i]
      else
        if root.molo.scriptLoader
          if isJavaScriptFile(root.molo.paths[name])
            # If the path is complete (e.g. 'js/lib/mymodule.js') take that as a path
            scriptPath = root.molo.paths[name]
