Skip to content
No description, website, or topics provided.
JavaScript HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
config Update to ember-cli@2.16 blueprint. Nov 14, 2017
vendor Ensure missing module doesn't trigger errors. Jan 28, 2017
.editorconfig Upgrade to ember-cli@2.7.0-beta.4 Jun 23, 2016
.eslintrc.js Update to ember-cli@2.16 blueprint. Nov 14, 2017
.jscsrc Add ember-suave. Nov 9, 2015
.npmignore Update to ember-cli@2.16 blueprint. Nov 14, 2017
.watchmanconfig Initial Commit from Ember CLI v1.13.8 Nov 9, 2015
ember-cli-build.js Update to ember-cli@2.16 blueprint. Nov 14, 2017
index.js Update to ember-cli@2.16 blueprint. Nov 14, 2017
package.json v2.2.0 Nov 14, 2017
testem.js Update to ember-cli@2.16 blueprint. Nov 14, 2017
yarn.lock Bump minimum ember-factory-for-polyfill version. Nov 14, 2017


This provides a polyfill for the Ember.getOwner feature added in Ember 2.3.


ember install ember-getowner-polyfill


import Ember from 'ember';

export default Ember.Service.extend({
  someMethod() {
    let owner = Ember.getOwner(this);
    // do stuff with owner



After you upgrade your application to Ember 2.3, you should remove ember-getowner-polyfill from your package.json.


Addons generally support many different Ember versions, so leaving ember-getowner-polyfill in place for consumers of your addon is perfectly normal. When the addon no longer supports Ember versions older than 2.4, we recommend removing ember-getowner-polyfill from your package.json and doing a major version bump.


The returned owner object should support all of the methods of the ContainerProxyMixin and RegistryProxyMixin.


This addon is tested against quite a few past Ember versions. Check config/ember-try.js for the current list, but the list of supported Ember versions at the time of authoring was:

  • 1.10
  • 1.11
  • 1.12
  • 1.13
  • 2.0
  • 2.1
  • 2.2
  • 2.3
  • 2.4
  • 2.8
  • 2.12
  • 2.14
  • 2.15
  • 2.16 (canary at the time)

Addon Maintenance


  • git clone this repository
  • npm install


Running Tests

  • npm test (Runs ember try:each to test your addon against multiple Ember versions)
  • ember test
  • ember test --server


  • ember build

For more information on using ember-cli, visit

You can’t perform that action at this time.