Socket
Socket
Sign inDemoInstall

ember-getowner-polyfill

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-getowner-polyfill

The default blueprint for ember-cli addons.


Version published
Maintainers
1
Created
Source

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 getOwner from 'ember-getowner-polyfill';

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

Documentation

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

  • http://emberjs.com/api/classes/RegistryProxyMixin.html
  • http://emberjs.com/api/classes/ContainerProxyMixin.html

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 (canary at the time)

Addon Maintenance

Installation

  • git clone this repository
  • npm install
  • bower install

Running

Running Tests

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

Building

  • ember build

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

Keywords

FAQs

Package last updated on 09 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc