src/core/registry.coffee in luca-0.9.65 vs src/core/registry.coffee in luca-0.9.76

- old
+ new

@@ -74,14 +74,12 @@ # the basis of Luca's in browser development tools. Luca.registry.namespaces = (resolve=true)-> _( registry.namespaces ).map (namespace)-> if resolve then Luca.util.resolve( namespace ) else namespace - - # Lookup a component in the Luca component registry -# by it's ctype identifier. If it doesn't exist, +# by it's type identifier. If it doesn't exist, # check any other registered namespace Luca.registry.lookup = (ctype)-> if alias = Luca.registry.aliases[ ctype ] ctype = alias @@ -116,9 +114,12 @@ if toString className else className: className ctype: ctype + +Luca.registry.find = (search)-> + Luca.util.resolve(search) || Luca.define.findDefinition(search) Luca.cache = Luca.cacheInstance = (cacheKey, object)-> return unless cacheKey? return object if object?.doNotCache is true