Skip to content

Commit

Permalink
use registry instead of _registry if available (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Fan authored and vvscode committed Mar 14, 2017
1 parent 3fccb4f commit 38c2880
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/action-link.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default Ember.Component.extend(WithConfigMixin, {
initModal: (function() {
var container = this.get('container');
if(!container.lookupFactory(COMPONENT_NAME)) {
container._registry.register(COMPONENT_NAME, Modal.extend({
(container.registry || container._registry).register(COMPONENT_NAME, Modal.extend({
layoutName: 'components/em-wysiwyg-action-link-modal',
configName: 'bs',
parentView: this,
Expand Down

0 comments on commit 38c2880

Please sign in to comment.