ember.js - "undefined is not a function" for CP and didInsertElement -
i'm wrapping js component ember addon, i've done many times before, , yet i'm running problem right @ get-go makes me worry maybe "magic" of ember has shifted slightly? anyway hoping can explain why following: import ember 'ember'; import layout '../templates/components/nav-menu'; export default ember.component.extend({ layout: layout, tagname: 'nav', classnames: ['navmenu','navmenu-default','navmenu-fixed-left'], attributenames: ['role:navigation'], classnamebindings: ['offcanvas'], hideat: null, offcanvas: function() { let hideat = this.get('hideat'); if(!hideat) { return 'offcanvas'; } else { return 'offcanvas-%@'.fmt(hideat); } }.property('hideat'), _initialize: function() { this.$().offcanvas(); }.on('didinsertelement') }); this fails on 2 counts. as-is fails in offcanvas computed property say...