Sha256: eb49eff7fbc37e2ae5e82a29e530c2a0009e4492ea164185652a750b6db04607
Contents?: true
Size: 678 Bytes
Versions: 3
Compression:
Stored size: 678 Bytes
Contents
module.exports = function buildOwner(Ember, resolver) { var Owner = Ember.Object.extend(Ember._RegistryProxyMixin, Ember._ContainerProxyMixin); var namespace = Ember.Object.create({ Resolver: { create: function() { return resolver; }, }, }); var fallbackRegistry = Ember.Application.buildRegistry(namespace); var registry = new Ember.Registry({ fallback: fallbackRegistry, }); Ember.ApplicationInstance.setupRegistry(registry); var owner = Owner.create({ __registry__: registry, __container__: null, }); var container = registry.container({ owner: owner }); owner.__container__ = container; return owner; };
Version data entries
3 entries across 3 versions & 1 rubygems