{"action":"closed","issue":{"url":"https://api.github.com/repos/cibernox/ember-power-select/issues/221","repository_url":"https://api.github.com/repos/cibernox/ember-power-select","labels_url":"https://api.github.com/repos/cibernox/ember-power-select/issues/221/labels{/name}","comments_url":"https://api.github.com/repos/cibernox/ember-power-select/issues/221/comments","events_url":"https://api.github.com/repos/cibernox/ember-power-select/issues/221/events","html_url":"https://github.com/cibernox/ember-power-select/issues/221","id":124370102,"number":221,"title":"power-select.js:125 Uncaught TypeError: this.get(...) is not a function","user":{"login":"msalahz","id":3384518,"avatar_url":"https://avatars.githubusercontent.com/u/3384518?v=3","gravatar_id":"","url":"https://api.github.com/users/msalahz","html_url":"https://github.com/msalahz","followers_url":"https://api.github.com/users/msalahz/followers","following_url":"https://api.github.com/users/msalahz/following{/other_user}","gists_url":"https://api.github.com/users/msalahz/gists{/gist_id}","starred_url":"https://api.github.com/users/msalahz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msalahz/subscriptions","organizations_url":"https://api.github.com/users/msalahz/orgs","repos_url":"https://api.github.com/users/msalahz/repos","events_url":"https://api.github.com/users/msalahz/events{/privacy}","received_events_url":"https://api.github.com/users/msalahz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-30T16:35:04Z","updated_at":"2016-02-04T10:20:12Z","closed_at":"2016-02-04T10:20:12Z","body":"Hi!, I'm a new user for ember-power-select and I'm trying to replace ember-select2 with it. I notice the following error during the migration `Uncaught TypeError: this.get(...) is not a function` in the following line [/compoants/power-select.js:105](https://github.com/cibernox/ember-power-select/blob/master/addon/components/power-select.js#L105) after debugging I found `this.get('search')` value is `Class {__ember1451491411427: null, __ember_meta__: Meta}` and it's expected to be null\r\n\r\nmy implementation\r\n```\r\n{{#power-select \r\n     placeholder=\"Select Link Name\" \r\n     allowClear=true selected=linkName\r\n     options=model.linksNamesOptions \r\n     onchange=(action (mut linkName)) as |item|}}\r\n    {{item}}\r\n {{/power-select}}\r\n``` \r\n as a temporary fix I added `search=null` to the component element\r\n\r\nI think it's better to validate this using Ember.typeOf() by applying the following change on line 104 :\r\n `} else if (Ember.typeOf(this.get('search')) === \"function\") {`\r\n\r\n```\r\nember.js: v2.2.0\r\nember-power-select: v0.8.0-beta.1\r\n$ ember -v \r\nversion: 2.2.0-beta.2\r\nnode: 0.12.7\r\nnpm: 2.14.10\r\nos: darwin x64\r\n```\r\n\r\nWill be glad to create a PR for this.\r\n"}}