{"action":"created","comment":{"url":"https://api.github.com/repos/softlayer/sl-ember-components/pulls/comments/34996337","id":34996337,"diff_hunk":"@@ -367,22 +367,48 @@ test( 'updateDateRange() - when date outside endDate range we show placeholder t\n     );\n });\n \n-test( 'unregisterEvents() - listens to correct event', function( assert ) {\n+test( 'changeDate listener is added and removed from the correct namespace', function( assert ) {\n     const component = this.subject();\n-    const inputElement = this.$( 'input.date-picker' )[ 0 ];\n+    const inputElement = this.$( 'input.date-picker' );\n+    const jQueryData = Ember.get( Ember.$, '_data' );\n+    const hasDatePickerNamespace = () => {\n+        let hasNamespace = false;\n+\n+        assert.equal(\n+            Ember.typeOf(\n+                Ember.get( jQueryData( inputElement[0], 'events' ), 'changeDate' )\n+            ),\n+            'array',\n+            'Datepicker has changeDate listeners'\n+        );\n \n-    assert.equal(\n-        Ember.typeOf( $._data( inputElement, 'events' ).changeDate ),\n-        'array',\n-        'Datepicker has a changeDate event listener after render'\n+        Ember.get( jQueryData( inputElement[0], 'events' ), 'changeDate' ).every(\n+            ( element ) => {\n+                if ( element.namespace === \"sl-date-picker\" ) {","path":"tests/unit/components/sl-date-picker-test.js","position":27,"original_position":27,"commit_id":"e7376d233a5e9e54abd77482987f1ccffa70fa7b","original_commit_id":"e7376d233a5e9e54abd77482987f1ccffa70fa7b","user":{"login":"notmessenger","id":435544,"avatar_url":"https://avatars.githubusercontent.com/u/435544?v=3","gravatar_id":"","url":"https://api.github.com/users/notmessenger","html_url":"https://github.com/notmessenger","followers_url":"https://api.github.com/users/notmessenger/followers","following_url":"https://api.github.com/users/notmessenger/following{/other_user}","gists_url":"https://api.github.com/users/notmessenger/gists{/gist_id}","starred_url":"https://api.github.com/users/notmessenger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/notmessenger/subscriptions","organizations_url":"https://api.github.com/users/notmessenger/orgs","repos_url":"https://api.github.com/users/notmessenger/repos","events_url":"https://api.github.com/users/notmessenger/events{/privacy}","received_events_url":"https://api.github.com/users/notmessenger/received_events","type":"User","site_admin":false},"body":"Use single quotes per https://github.com/softlayer/ember-style-guide/blob/master/javascript.md#strings-1","created_at":"2015-07-20T13:54:41Z","updated_at":"2015-07-20T13:54:41Z","html_url":"https://github.com/softlayer/sl-ember-components/pull/435#discussion_r34996337","pull_request_url":"https://api.github.com/repos/softlayer/sl-ember-components/pulls/435","_links":{"self":{"href":"https://api.github.com/repos/softlayer/sl-ember-components/pulls/comments/34996337"},"html":{"href":"https://github.com/softlayer/sl-ember-components/pull/435#discussion_r34996337"},"pull_request":{"href":"https://api.github.com/repos/softlayer/sl-ember-components/pulls/435"}}},"pull_request":{"url":"https://api.github.com/repos/softlayer/sl-ember-components/pulls/435","id":40181591,"html_url":"https://github.com/softlayer/sl-ember-components/pull/435","diff_url":"https://github.com/softlayer/sl-ember-components/pull/435.diff","patch_url":"https://github.com/softlayer/sl-ember-components/pull/435.patch","issue_url":"https://api.github.com/repos/softlayer/sl-ember-components/issues/435","number":435,"state":"open","locked":false,"title":"Closes softlayer/sl-ember-components#426","user":{"login":"alxyuu","id":98154,"avatar_url":"https://avatars.githubusercontent.com/u/98154?v=3","gravatar_id":"","url":"https://api.github.com/users/alxyuu","html_url":"https://github.com/alxyuu","followers_url":"https://api.github.com/users/alxyuu/followers","following_url":"https://api.github.com/users/alxyuu/following{/other_user}","gists_url":"https://api.github.com/users/alxyuu/gists{/gist_id}","starred_url":"https://api.github.com/users/alxyuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxyuu/subscriptions","organizations_url":"https://api.github.com/users/alxyuu/orgs","repos_url":"https://api.github.com/users/alxyuu/repos","events_url":"https://api.github.com/users/alxyuu/events{/privacy}","received_events_url":"https://api.github.com/users/alxyuu/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-16T22:07:27Z","updated_at":"2015-07-20T13:54:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9ce5ff2962a7a803259ef7fbd4c5249c2f4edd21","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/softlayer/sl-ember-components/pulls/435/commits","review_comments_url":"https://api.github.com/repos/softlayer/sl-ember-components/pulls/435/comments","review_comment_url":"https://api.github.com/repos/softlayer/sl-ember-components/pulls/comments{/number}","comments_url":"https://api.github.com/repos/softlayer/sl-ember-components/issues/435/comments","statuses_url":"https://api.github.com/repos/softlayer/sl-ember-components/statuses/e7376d233a5e9e54abd77482987f1ccffa70fa7b","head":{"label":"alxyuu:issue426","ref":"issue426","sha":"e7376d233a5e9e54abd77482987f1ccffa70fa7b","user":{"login":"alxyuu","id":98154,"avatar_url":"https://avatars.githubusercontent.com/u/98154?v=3","gravatar_id":"","url":"https://api.github.com/users/alxyuu","html_url":"https://github.com/alxyuu","followers_url":"https://api.github.com/users/alxyuu/followers","following_url":"https://api.github.com/users/alxyuu/following{/other_user}","gists_url":"https://api.github.com/users/alxyuu/gists{/gist_id}","starred_url":"https://api.github.com/users/alxyuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxyuu/subscriptions","organizations_url":"https://api.github.com/users/alxyuu/orgs","repos_url":"https://api.github.com/users/alxyuu/repos","events_url":"https://api.github.com/users/alxyuu/events{/privacy}","received_events_url":"https://api.github.com/users/alxyuu/received_events","type":"User","site_admin":false},"repo":{"id":38781826,"name":"sl-ember-components","full_name":"alxyuu/sl-ember-components","owner":{"login":"alxyuu","id":98154,"avatar_url":"https://avatars.githubusercontent.com/u/98154?v=3","gravatar_id":"","url":"https://api.github.com/users/alxyuu","html_url":"https://github.com/alxyuu","followers_url":"https://api.github.com/users/alxyuu/followers","following_url":"https://api.github.com/users/alxyuu/following{/other_user}","gists_url":"https://api.github.com/users/alxyuu/gists{/gist_id}","starred_url":"https://api.github.com/users/alxyuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxyuu/subscriptions","organizations_url":"https://api.github.com/users/alxyuu/orgs","repos_url":"https://api.github.com/users/alxyuu/repos","events_url":"https://api.github.com/users/alxyuu/events{/privacy}","received_events_url":"https://api.github.com/users/alxyuu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alxyuu/sl-ember-components","description":"An Ember CLI Addon that provides a variety of UI components.","fork":true,"url":"https://api.github.com/repos/alxyuu/sl-ember-components","forks_url":"https://api.github.com/repos/alxyuu/sl-ember-components/forks","keys_url":"https://api.github.com/repos/alxyuu/sl-ember-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alxyuu/sl-ember-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alxyuu/sl-ember-components/teams","hooks_url":"https://api.github.com/repos/alxyuu/sl-ember-components/hooks","issue_events_url":"https://api.github.com/repos/alxyuu/sl-ember-components/issues/events{/number}","events_url":"https://api.github.com/repos/alxyuu/sl-ember-components/events","assignees_url":"https://api.github.com/repos/alxyuu/sl-ember-components/assignees{/user}","branches_url":"https://api.github.com/repos/alxyuu/sl-ember-components/branches{/branch}","tags_url":"https://api.github.com/repos/alxyuu/sl-ember-components/tags","blobs_url":"https://api.github.com/repos/alxyuu/sl-ember-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alxyuu/sl-ember-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alxyuu/sl-ember-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/alxyuu/sl-ember-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alxyuu/sl-ember-components/statuses/{sha}","languages_url":"https://api.github.com/repos/alxyuu/sl-ember-components/languages","stargazers_url":"https://api.github.com/repos/alxyuu/sl-ember-components/stargazers","contributors_url":"https://api.github.com/repos/alxyuu/sl-ember-components/contributors","subscribers_url":"https://api.github.com/repos/alxyuu/sl-ember-components/subscribers","subscription_url":"https://api.github.com/repos/alxyuu/sl-ember-components/subscription","commits_url":"https://api.github.com/repos/alxyuu/sl-ember-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/alxyuu/sl-ember-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/alxyuu/sl-ember-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/alxyuu/sl-ember-components/issues/comments{/number}","contents_url":"https://api.github.com/repos/alxyuu/sl-ember-components/contents/{+path}","compare_url":"https://api.github.com/repos/alxyuu/sl-ember-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alxyuu/sl-ember-components/merges","archive_url":"https://api.github.com/repos/alxyuu/sl-ember-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alxyuu/sl-ember-components/downloads","issues_url":"https://api.github.com/repos/alxyuu/sl-ember-components/issues{/number}","pulls_url":"https://api.github.com/repos/alxyuu/sl-ember-components/pulls{/number}","milestones_url":"https://api.github.com/repos/alxyuu/sl-ember-components/milestones{/number}","notifications_url":"https://api.github.com/repos/alxyuu/sl-ember-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alxyuu/sl-ember-components/labels{/name}","releases_url":"https://api.github.com/repos/alxyuu/sl-ember-components/releases{/id}","created_at":"2015-07-08T21:48:10Z","updated_at":"2015-07-08T21:48:11Z","pushed_at":"2015-07-18T01:55:36Z","git_url":"git://github.com/alxyuu/sl-ember-components.git","ssh_url":"git@github.com:alxyuu/sl-ember-components.git","clone_url":"https://github.com/alxyuu/sl-ember-components.git","svn_url":"https://github.com/alxyuu/sl-ember-components","homepage":"http://softlayer.github.io/sl-ember-components","size":7055,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"softlayer:develop","ref":"develop","sha":"d3bfac1483600e0dff760538af8f21fd41f0c13c","user":{"login":"softlayer","id":49550,"avatar_url":"https://avatars.githubusercontent.com/u/49550?v=3","gravatar_id":"","url":"https://api.github.com/users/softlayer","html_url":"https://github.com/softlayer","followers_url":"https://api.github.com/users/softlayer/followers","following_url":"https://api.github.com/users/softlayer/following{/other_user}","gists_url":"https://api.github.com/users/softlayer/gists{/gist_id}","starred_url":"https://api.github.com/users/softlayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/softlayer/subscriptions","organizations_url":"https://api.github.com/users/softlayer/orgs","repos_url":"https://api.github.com/users/softlayer/repos","events_url":"https://api.github.com/users/softlayer/events{/privacy}","received_events_url":"https://api.github.com/users/softlayer/received_events","type":"Organization","site_admin":false},"repo":{"id":26869437,"name":"sl-ember-components","full_name":"softlayer/sl-ember-components","owner":{"login":"softlayer","id":49550,"avatar_url":"https://avatars.githubusercontent.com/u/49550?v=3","gravatar_id":"","url":"https://api.github.com/users/softlayer","html_url":"https://github.com/softlayer","followers_url":"https://api.github.com/users/softlayer/followers","following_url":"https://api.github.com/users/softlayer/following{/other_user}","gists_url":"https://api.github.com/users/softlayer/gists{/gist_id}","starred_url":"https://api.github.com/users/softlayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/softlayer/subscriptions","organizations_url":"https://api.github.com/users/softlayer/orgs","repos_url":"https://api.github.com/users/softlayer/repos","events_url":"https://api.github.com/users/softlayer/events{/privacy}","received_events_url":"https://api.github.com/users/softlayer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/softlayer/sl-ember-components","description":"An Ember CLI Addon that provides a variety of UI components.","fork":false,"url":"https://api.github.com/repos/softlayer/sl-ember-components","forks_url":"https://api.github.com/repos/softlayer/sl-ember-components/forks","keys_url":"https://api.github.com/repos/softlayer/sl-ember-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/softlayer/sl-ember-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/softlayer/sl-ember-components/teams","hooks_url":"https://api.github.com/repos/softlayer/sl-ember-components/hooks","issue_events_url":"https://api.github.com/repos/softlayer/sl-ember-components/issues/events{/number}","events_url":"https://api.github.com/repos/softlayer/sl-ember-components/events","assignees_url":"https://api.github.com/repos/softlayer/sl-ember-components/assignees{/user}","branches_url":"https://api.github.com/repos/softlayer/sl-ember-components/branches{/branch}","tags_url":"https://api.github.com/repos/softlayer/sl-ember-components/tags","blobs_url":"https://api.github.com/repos/softlayer/sl-ember-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/softlayer/sl-ember-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/softlayer/sl-ember-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/softlayer/sl-ember-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/softlayer/sl-ember-components/statuses/{sha}","languages_url":"https://api.github.com/repos/softlayer/sl-ember-components/languages","stargazers_url":"https://api.github.com/repos/softlayer/sl-ember-components/stargazers","contributors_url":"https://api.github.com/repos/softlayer/sl-ember-components/contributors","subscribers_url":"https://api.github.com/repos/softlayer/sl-ember-components/subscribers","subscription_url":"https://api.github.com/repos/softlayer/sl-ember-components/subscription","commits_url":"https://api.github.com/repos/softlayer/sl-ember-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/softlayer/sl-ember-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/softlayer/sl-ember-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/softlayer/sl-ember-components/issues/comments{/number}","contents_url":"https://api.github.com/repos/softlayer/sl-ember-components/contents/{+path}","compare_url":"https://api.github.com/repos/softlayer/sl-ember-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/softlayer/sl-ember-components/merges","archive_url":"https://api.github.com/repos/softlayer/sl-ember-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/softlayer/sl-ember-components/downloads","issues_url":"https://api.github.com/repos/softlayer/sl-ember-components/issues{/number}","pulls_url":"https://api.github.com/repos/softlayer/sl-ember-components/pulls{/number}","milestones_url":"https://api.github.com/repos/softlayer/sl-ember-components/milestones{/number}","notifications_url":"https://api.github.com/repos/softlayer/sl-ember-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/softlayer/sl-ember-components/labels{/name}","releases_url":"https://api.github.com/repos/softlayer/sl-ember-components/releases{/id}","created_at":"2014-11-19T16:07:47Z","updated_at":"2015-07-19T12:25:49Z","pushed_at":"2015-07-20T13:30:21Z","git_url":"git://github.com/softlayer/sl-ember-components.git","ssh_url":"git@github.com:softlayer/sl-ember-components.git","clone_url":"https://github.com/softlayer/sl-ember-components.git","svn_url":"https://github.com/softlayer/sl-ember-components","homepage":"http://softlayer.github.io/sl-ember-components","size":9961,"stargazers_count":83,"watchers_count":83,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":20,"mirror_url":null,"open_issues_count":93,"forks":20,"open_issues":93,"watchers":83,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/softlayer/sl-ember-components/pulls/435"},"html":{"href":"https://github.com/softlayer/sl-ember-components/pull/435"},"issue":{"href":"https://api.github.com/repos/softlayer/sl-ember-components/issues/435"},"comments":{"href":"https://api.github.com/repos/softlayer/sl-ember-components/issues/435/comments"},"review_comments":{"href":"https://api.github.com/repos/softlayer/sl-ember-components/pulls/435/comments"},"review_comment":{"href":"https://api.github.com/repos/softlayer/sl-ember-components/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/softlayer/sl-ember-components/pulls/435/commits"},"statuses":{"href":"https://api.github.com/repos/softlayer/sl-ember-components/statuses/e7376d233a5e9e54abd77482987f1ccffa70fa7b"}}}}