From 145b4da230a8b6e7a0aadb59004e2b401e2ee21b Mon Sep 17 00:00:00 2001 From: Marcelo Andrade R Date: Fri, 18 Nov 2016 11:11:46 -0500 Subject: [PATCH] Because of ember 2.9 removed targetObject In the meantime just use _targetObject but ember team will restore functionality with a deprecation message: https://github.com/emberjs/ember.js/issues/14168 --- addon/components/full-calendar.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addon/components/full-calendar.js b/addon/components/full-calendar.js index b6096ca..01c9d96 100644 --- a/addon/components/full-calendar.js +++ b/addon/components/full-calendar.js @@ -84,7 +84,8 @@ export default Component.extend({ * Register this component to parent controller. We need this to be able to send actions from outside. */ didReceiveAttrs: function() { - this.set('targetObject.' + this.get('register-as'), this); + let targetObject = this.get('targetObject') ? 'targetObject' : '_targetObject'; + this.set(targetObject + '.' + this.get('register-as'), this); }, didInsertElement() {