Skip to content

Commit

Permalink
Merge pull request #12592 from kiwiupover/replace_ember.deprecate_wit…
Browse files Browse the repository at this point in the history
…h_deprecate

[REFACTOR removing ember global]
  • Loading branch information
mixonic committed Nov 12, 2015
2 parents 44e5f28 + 669d321 commit dc4c57c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/container/lib/container.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Ember from 'ember-metal/core';
import { assert } from 'ember-metal/debug';
import { assert, deprecate } from 'ember-metal/debug';
import dictionary from 'ember-metal/dictionary';
import isEnabled from 'ember-metal/features';
import { setOwner } from './owner';
Expand Down Expand Up @@ -347,9 +347,9 @@ function injectDeprecatedContainer(object, container) {
configurable: true,
enumerable: false,
get() {
Ember.deprecate('Using the injected `container` is deprecated. Please use the `getOwner` helper instead to access the owner of this object.',
false,
{ id: 'ember-application.injected-container', until: '3.0.0' });
deprecate('Using the injected `container` is deprecated. Please use the `getOwner` helper instead to access the owner of this object.',
false,
{ id: 'ember-application.injected-container', until: '3.0.0' });
return container;
}
});
Expand Down

0 comments on commit dc4c57c

Please sign in to comment.