{"action":"created","comment":{"url":"https://api.github.com/repos/chenglou/react-motion/pulls/comments/41025361","id":41025361,"diff_hunk":"@@ -65,6 +81,14 @@ describe('updateCurrentVelocity', () => {\n       .toEqual({a: 0, b: 20.4});\n   });\n \n+  it('should handle `undefined`', () => {\n+    const currentStyle = {a: undefined};\n+    const currentVelocity = {a: undefined};\n+    const style = {a: undefined};\n+    expect(updateCurrentVelocity(FRAME_RATE, currentStyle, currentVelocity, style))\n+      .toEqual({a: 0});","path":"test/updateTree-test.js","position":42,"original_position":42,"commit_id":"7c822f7ddfb5667a5eae0d9eae443db6e34a2fc4","original_commit_id":"7c822f7ddfb5667a5eae0d9eae443db6e34a2fc4","user":{"login":"lencioni","id":195534,"avatar_url":"https://avatars.githubusercontent.com/u/195534?v=3","gravatar_id":"","url":"https://api.github.com/users/lencioni","html_url":"https://github.com/lencioni","followers_url":"https://api.github.com/users/lencioni/followers","following_url":"https://api.github.com/users/lencioni/following{/other_user}","gists_url":"https://api.github.com/users/lencioni/gists{/gist_id}","starred_url":"https://api.github.com/users/lencioni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lencioni/subscriptions","organizations_url":"https://api.github.com/users/lencioni/orgs","repos_url":"https://api.github.com/users/lencioni/repos","events_url":"https://api.github.com/users/lencioni/events{/privacy}","received_events_url":"https://api.github.com/users/lencioni/received_events","type":"User","site_admin":false},"body":"Yeah, I found this to be a little unexpected. :)","created_at":"2015-10-02T14:14:02Z","updated_at":"2015-10-02T14:14:02Z","html_url":"https://github.com/chenglou/react-motion/pull/181#discussion_r41025361","pull_request_url":"https://api.github.com/repos/chenglou/react-motion/pulls/181","_links":{"self":{"href":"https://api.github.com/repos/chenglou/react-motion/pulls/comments/41025361"},"html":{"href":"https://github.com/chenglou/react-motion/pull/181#discussion_r41025361"},"pull_request":{"href":"https://api.github.com/repos/chenglou/react-motion/pulls/181"}}},"pull_request":{"url":"https://api.github.com/repos/chenglou/react-motion/pulls/181","id":46638170,"html_url":"https://github.com/chenglou/react-motion/pull/181","diff_url":"https://github.com/chenglou/react-motion/pull/181.diff","patch_url":"https://github.com/chenglou/react-motion/pull/181.patch","issue_url":"https://api.github.com/repos/chenglou/react-motion/issues/181","number":181,"state":"closed","locked":false,"title":"Handle `undefined` and `null` in style objects","user":{"login":"lencioni","id":195534,"avatar_url":"https://avatars.githubusercontent.com/u/195534?v=3","gravatar_id":"","url":"https://api.github.com/users/lencioni","html_url":"https://github.com/lencioni","followers_url":"https://api.github.com/users/lencioni/followers","following_url":"https://api.github.com/users/lencioni/following{/other_user}","gists_url":"https://api.github.com/users/lencioni/gists{/gist_id}","starred_url":"https://api.github.com/users/lencioni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lencioni/subscriptions","organizations_url":"https://api.github.com/users/lencioni/orgs","repos_url":"https://api.github.com/users/lencioni/repos","events_url":"https://api.github.com/users/lencioni/events{/privacy}","received_events_url":"https://api.github.com/users/lencioni/received_events","type":"User","site_admin":false},"body":"I am upgrading from 0.2.7 to 0.3.0 and I ran into an error:\r\n\r\n> Uncaught TypeError: Cannot read property 'config' of undefined\r\n\r\nThis happens when I am using a `TransitionMotion` with a style object\r\nthat has a key who's value is `undefined`, e.g.:\r\n\r\n  {\r\n    opacity: spring(0),\r\n    extraText: undefined,\r\n  }\r\n\r\nTo make react-motion easier to work with, I have added guards in a\r\nnumber of places.\r\n\r\nFixes #180.","created_at":"2015-10-02T14:00:29Z","updated_at":"2015-10-02T14:14:02Z","closed_at":"2015-10-02T14:12:55Z","merged_at":"2015-10-02T14:12:55Z","merge_commit_sha":"edb90ebfb03400177d17fb559c7489d3e22ebdfa","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/chenglou/react-motion/pulls/181/commits","review_comments_url":"https://api.github.com/repos/chenglou/react-motion/pulls/181/comments","review_comment_url":"https://api.github.com/repos/chenglou/react-motion/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chenglou/react-motion/issues/181/comments","statuses_url":"https://api.github.com/repos/chenglou/react-motion/statuses/7c822f7ddfb5667a5eae0d9eae443db6e34a2fc4","head":{"label":"lencioni:undefined","ref":"undefined","sha":"7c822f7ddfb5667a5eae0d9eae443db6e34a2fc4","user":{"login":"lencioni","id":195534,"avatar_url":"https://avatars.githubusercontent.com/u/195534?v=3","gravatar_id":"","url":"https://api.github.com/users/lencioni","html_url":"https://github.com/lencioni","followers_url":"https://api.github.com/users/lencioni/followers","following_url":"https://api.github.com/users/lencioni/following{/other_user}","gists_url":"https://api.github.com/users/lencioni/gists{/gist_id}","starred_url":"https://api.github.com/users/lencioni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lencioni/subscriptions","organizations_url":"https://api.github.com/users/lencioni/orgs","repos_url":"https://api.github.com/users/lencioni/repos","events_url":"https://api.github.com/users/lencioni/events{/privacy}","received_events_url":"https://api.github.com/users/lencioni/received_events","type":"User","site_admin":false},"repo":{"id":43554370,"name":"react-motion","full_name":"lencioni/react-motion","owner":{"login":"lencioni","id":195534,"avatar_url":"https://avatars.githubusercontent.com/u/195534?v=3","gravatar_id":"","url":"https://api.github.com/users/lencioni","html_url":"https://github.com/lencioni","followers_url":"https://api.github.com/users/lencioni/followers","following_url":"https://api.github.com/users/lencioni/following{/other_user}","gists_url":"https://api.github.com/users/lencioni/gists{/gist_id}","starred_url":"https://api.github.com/users/lencioni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lencioni/subscriptions","organizations_url":"https://api.github.com/users/lencioni/orgs","repos_url":"https://api.github.com/users/lencioni/repos","events_url":"https://api.github.com/users/lencioni/events{/privacy}","received_events_url":"https://api.github.com/users/lencioni/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lencioni/react-motion","description":"A spring that solves your animation problems.","fork":true,"url":"https://api.github.com/repos/lencioni/react-motion","forks_url":"https://api.github.com/repos/lencioni/react-motion/forks","keys_url":"https://api.github.com/repos/lencioni/react-motion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lencioni/react-motion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lencioni/react-motion/teams","hooks_url":"https://api.github.com/repos/lencioni/react-motion/hooks","issue_events_url":"https://api.github.com/repos/lencioni/react-motion/issues/events{/number}","events_url":"https://api.github.com/repos/lencioni/react-motion/events","assignees_url":"https://api.github.com/repos/lencioni/react-motion/assignees{/user}","branches_url":"https://api.github.com/repos/lencioni/react-motion/branches{/branch}","tags_url":"https://api.github.com/repos/lencioni/react-motion/tags","blobs_url":"https://api.github.com/repos/lencioni/react-motion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lencioni/react-motion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lencioni/react-motion/git/refs{/sha}","trees_url":"https://api.github.com/repos/lencioni/react-motion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lencioni/react-motion/statuses/{sha}","languages_url":"https://api.github.com/repos/lencioni/react-motion/languages","stargazers_url":"https://api.github.com/repos/lencioni/react-motion/stargazers","contributors_url":"https://api.github.com/repos/lencioni/react-motion/contributors","subscribers_url":"https://api.github.com/repos/lencioni/react-motion/subscribers","subscription_url":"https://api.github.com/repos/lencioni/react-motion/subscription","commits_url":"https://api.github.com/repos/lencioni/react-motion/commits{/sha}","git_commits_url":"https://api.github.com/repos/lencioni/react-motion/git/commits{/sha}","comments_url":"https://api.github.com/repos/lencioni/react-motion/comments{/number}","issue_comment_url":"https://api.github.com/repos/lencioni/react-motion/issues/comments{/number}","contents_url":"https://api.github.com/repos/lencioni/react-motion/contents/{+path}","compare_url":"https://api.github.com/repos/lencioni/react-motion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lencioni/react-motion/merges","archive_url":"https://api.github.com/repos/lencioni/react-motion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lencioni/react-motion/downloads","issues_url":"https://api.github.com/repos/lencioni/react-motion/issues{/number}","pulls_url":"https://api.github.com/repos/lencioni/react-motion/pulls{/number}","milestones_url":"https://api.github.com/repos/lencioni/react-motion/milestones{/number}","notifications_url":"https://api.github.com/repos/lencioni/react-motion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lencioni/react-motion/labels{/name}","releases_url":"https://api.github.com/repos/lencioni/react-motion/releases{/id}","created_at":"2015-10-02T13:31:01Z","updated_at":"2015-10-02T13:31:02Z","pushed_at":"2015-10-02T14:10:15Z","git_url":"git://github.com/lencioni/react-motion.git","ssh_url":"git@github.com:lencioni/react-motion.git","clone_url":"https://github.com/lencioni/react-motion.git","svn_url":"https://github.com/lencioni/react-motion","homepage":"","size":3357,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"chenglou:master","ref":"master","sha":"170ca754dd8865f46a988edd6bfa4738a5301b4f","user":{"login":"chenglou","id":1909539,"avatar_url":"https://avatars.githubusercontent.com/u/1909539?v=3","gravatar_id":"","url":"https://api.github.com/users/chenglou","html_url":"https://github.com/chenglou","followers_url":"https://api.github.com/users/chenglou/followers","following_url":"https://api.github.com/users/chenglou/following{/other_user}","gists_url":"https://api.github.com/users/chenglou/gists{/gist_id}","starred_url":"https://api.github.com/users/chenglou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenglou/subscriptions","organizations_url":"https://api.github.com/users/chenglou/orgs","repos_url":"https://api.github.com/users/chenglou/repos","events_url":"https://api.github.com/users/chenglou/events{/privacy}","received_events_url":"https://api.github.com/users/chenglou/received_events","type":"User","site_admin":false},"repo":{"id":37246537,"name":"react-motion","full_name":"chenglou/react-motion","owner":{"login":"chenglou","id":1909539,"avatar_url":"https://avatars.githubusercontent.com/u/1909539?v=3","gravatar_id":"","url":"https://api.github.com/users/chenglou","html_url":"https://github.com/chenglou","followers_url":"https://api.github.com/users/chenglou/followers","following_url":"https://api.github.com/users/chenglou/following{/other_user}","gists_url":"https://api.github.com/users/chenglou/gists{/gist_id}","starred_url":"https://api.github.com/users/chenglou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenglou/subscriptions","organizations_url":"https://api.github.com/users/chenglou/orgs","repos_url":"https://api.github.com/users/chenglou/repos","events_url":"https://api.github.com/users/chenglou/events{/privacy}","received_events_url":"https://api.github.com/users/chenglou/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chenglou/react-motion","description":"A spring that solves your animation problems.","fork":false,"url":"https://api.github.com/repos/chenglou/react-motion","forks_url":"https://api.github.com/repos/chenglou/react-motion/forks","keys_url":"https://api.github.com/repos/chenglou/react-motion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chenglou/react-motion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chenglou/react-motion/teams","hooks_url":"https://api.github.com/repos/chenglou/react-motion/hooks","issue_events_url":"https://api.github.com/repos/chenglou/react-motion/issues/events{/number}","events_url":"https://api.github.com/repos/chenglou/react-motion/events","assignees_url":"https://api.github.com/repos/chenglou/react-motion/assignees{/user}","branches_url":"https://api.github.com/repos/chenglou/react-motion/branches{/branch}","tags_url":"https://api.github.com/repos/chenglou/react-motion/tags","blobs_url":"https://api.github.com/repos/chenglou/react-motion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chenglou/react-motion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chenglou/react-motion/git/refs{/sha}","trees_url":"https://api.github.com/repos/chenglou/react-motion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chenglou/react-motion/statuses/{sha}","languages_url":"https://api.github.com/repos/chenglou/react-motion/languages","stargazers_url":"https://api.github.com/repos/chenglou/react-motion/stargazers","contributors_url":"https://api.github.com/repos/chenglou/react-motion/contributors","subscribers_url":"https://api.github.com/repos/chenglou/react-motion/subscribers","subscription_url":"https://api.github.com/repos/chenglou/react-motion/subscription","commits_url":"https://api.github.com/repos/chenglou/react-motion/commits{/sha}","git_commits_url":"https://api.github.com/repos/chenglou/react-motion/git/commits{/sha}","comments_url":"https://api.github.com/repos/chenglou/react-motion/comments{/number}","issue_comment_url":"https://api.github.com/repos/chenglou/react-motion/issues/comments{/number}","contents_url":"https://api.github.com/repos/chenglou/react-motion/contents/{+path}","compare_url":"https://api.github.com/repos/chenglou/react-motion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chenglou/react-motion/merges","archive_url":"https://api.github.com/repos/chenglou/react-motion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chenglou/react-motion/downloads","issues_url":"https://api.github.com/repos/chenglou/react-motion/issues{/number}","pulls_url":"https://api.github.com/repos/chenglou/react-motion/pulls{/number}","milestones_url":"https://api.github.com/repos/chenglou/react-motion/milestones{/number}","notifications_url":"https://api.github.com/repos/chenglou/react-motion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chenglou/react-motion/labels{/name}","releases_url":"https://api.github.com/repos/chenglou/react-motion/releases{/id}","created_at":"2015-06-11T07:38:23Z","updated_at":"2015-10-02T13:41:35Z","pushed_at":"2015-10-02T14:12:56Z","git_url":"git://github.com/chenglou/react-motion.git","ssh_url":"git@github.com:chenglou/react-motion.git","clone_url":"https://github.com/chenglou/react-motion.git","svn_url":"https://github.com/chenglou/react-motion","homepage":"","size":3357,"stargazers_count":2288,"watchers_count":2288,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":96,"mirror_url":null,"open_issues_count":38,"forks":96,"open_issues":38,"watchers":2288,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chenglou/react-motion/pulls/181"},"html":{"href":"https://github.com/chenglou/react-motion/pull/181"},"issue":{"href":"https://api.github.com/repos/chenglou/react-motion/issues/181"},"comments":{"href":"https://api.github.com/repos/chenglou/react-motion/issues/181/comments"},"review_comments":{"href":"https://api.github.com/repos/chenglou/react-motion/pulls/181/comments"},"review_comment":{"href":"https://api.github.com/repos/chenglou/react-motion/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chenglou/react-motion/pulls/181/commits"},"statuses":{"href":"https://api.github.com/repos/chenglou/react-motion/statuses/7c822f7ddfb5667a5eae0d9eae443db6e34a2fc4"}}}}