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.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config Update to ember-cli@2.16 blueprint. Nov 14, 2017
tests
vendor Ensure missing module doesn't trigger errors. Jan 28, 2017
.editorconfig Upgrade to ember-cli@2.7.0-beta.4 Jun 23, 2016
.ember-cli
.eslintrc.js Update to ember-cli@2.16 blueprint. Nov 14, 2017
.gitignore
.jscsrc Add ember-suave. Nov 9, 2015
.npmignore Update to ember-cli@2.16 blueprint. Nov 14, 2017
.travis.yml
.watchmanconfig Initial Commit from Ember CLI v1.13.8 Nov 9, 2015
LICENSE.md
README.md
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

README.md

ember-getowner-polyfill

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

Installation

ember install ember-getowner-polyfill

Usage

import Ember from 'ember';

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

Migration

Applications

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

Addons

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.

Documentation

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

Compatibility

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

Installation

  • git clone this repository
  • npm install

Running

Running Tests

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

Building

  • ember build

For more information on using ember-cli, visit https://ember-cli.com/.

You can’t perform that action at this time.