{"action":"created","comment":{"url":"https://api.github.com/repos/Behavior-UI/behavior-ui/pulls/comments/70726989","id":70726989,"diff_hunk":"@@ -10,10 +10,17 @@ requires: [Behavior/Delegator, More/Spinner]\n Delegator.register('click', {\n \n   spinOnClick: {\n+    defaults: {\n+      timeout: 0\n+    },\n     handler: function(event, element, api){\n       var target = element;\n       if (api.get('target')) target = api.getElement('target');\n       target.spin();\n+      var timeout = api.get('timeout');\n+      if (timeout > 0){\n+        target.unspin.delay(timeout, target);\n+      }","path":"js/Source/Delegators/Delegator.SpinOnClick.js","position":14,"original_position":14,"commit_id":"0196d21c19409640c5918691fdddf016b007611c","original_commit_id":"0196d21c19409640c5918691fdddf016b007611c","user":{"login":"anutron","id":13230,"avatar_url":"https://avatars.githubusercontent.com/u/13230?v=3","gravatar_id":"","url":"https://api.github.com/users/anutron","html_url":"https://github.com/anutron","followers_url":"https://api.github.com/users/anutron/followers","following_url":"https://api.github.com/users/anutron/following{/other_user}","gists_url":"https://api.github.com/users/anutron/gists{/gist_id}","starred_url":"https://api.github.com/users/anutron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anutron/subscriptions","organizations_url":"https://api.github.com/users/anutron/orgs","repos_url":"https://api.github.com/users/anutron/repos","events_url":"https://api.github.com/users/anutron/events{/privacy}","received_events_url":"https://api.github.com/users/anutron/received_events","type":"User","site_admin":false},"body":"```\r\nvar timeout = api.getAs(Number, 'timeout');\r\nif (timeout) target.unspin.delay(timeout, target);\r\n```","created_at":"2016-07-13T23:33:14Z","updated_at":"2016-07-13T23:33:14Z","html_url":"https://github.com/Behavior-UI/behavior-ui/pull/63#discussion_r70726989","pull_request_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/pulls/63","_links":{"self":{"href":"https://api.github.com/repos/Behavior-UI/behavior-ui/pulls/comments/70726989"},"html":{"href":"https://github.com/Behavior-UI/behavior-ui/pull/63#discussion_r70726989"},"pull_request":{"href":"https://api.github.com/repos/Behavior-UI/behavior-ui/pulls/63"}}},"pull_request":{"url":"https://api.github.com/repos/Behavior-UI/behavior-ui/pulls/63","id":77360269,"html_url":"https://github.com/Behavior-UI/behavior-ui/pull/63","diff_url":"https://github.com/Behavior-UI/behavior-ui/pull/63.diff","patch_url":"https://github.com/Behavior-UI/behavior-ui/pull/63.patch","issue_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/issues/63","number":63,"state":"open","locked":false,"title":"Add timeout option to spinOnClick Delegator.","user":{"login":"davywentworth","id":877628,"avatar_url":"https://avatars.githubusercontent.com/u/877628?v=3","gravatar_id":"","url":"https://api.github.com/users/davywentworth","html_url":"https://github.com/davywentworth","followers_url":"https://api.github.com/users/davywentworth/followers","following_url":"https://api.github.com/users/davywentworth/following{/other_user}","gists_url":"https://api.github.com/users/davywentworth/gists{/gist_id}","starred_url":"https://api.github.com/users/davywentworth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davywentworth/subscriptions","organizations_url":"https://api.github.com/users/davywentworth/orgs","repos_url":"https://api.github.com/users/davywentworth/repos","events_url":"https://api.github.com/users/davywentworth/events{/privacy}","received_events_url":"https://api.github.com/users/davywentworth/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-13T20:56:25Z","updated_at":"2016-07-13T23:33:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"785a483689f0f8b2e7071fe0f5739825152906f5","assignee":{"login":"anutron","id":13230,"avatar_url":"https://avatars.githubusercontent.com/u/13230?v=3","gravatar_id":"","url":"https://api.github.com/users/anutron","html_url":"https://github.com/anutron","followers_url":"https://api.github.com/users/anutron/followers","following_url":"https://api.github.com/users/anutron/following{/other_user}","gists_url":"https://api.github.com/users/anutron/gists{/gist_id}","starred_url":"https://api.github.com/users/anutron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anutron/subscriptions","organizations_url":"https://api.github.com/users/anutron/orgs","repos_url":"https://api.github.com/users/anutron/repos","events_url":"https://api.github.com/users/anutron/events{/privacy}","received_events_url":"https://api.github.com/users/anutron/received_events","type":"User","site_admin":false},"assignees":[{"login":"anutron","id":13230,"avatar_url":"https://avatars.githubusercontent.com/u/13230?v=3","gravatar_id":"","url":"https://api.github.com/users/anutron","html_url":"https://github.com/anutron","followers_url":"https://api.github.com/users/anutron/followers","following_url":"https://api.github.com/users/anutron/following{/other_user}","gists_url":"https://api.github.com/users/anutron/gists{/gist_id}","starred_url":"https://api.github.com/users/anutron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anutron/subscriptions","organizations_url":"https://api.github.com/users/anutron/orgs","repos_url":"https://api.github.com/users/anutron/repos","events_url":"https://api.github.com/users/anutron/events{/privacy}","received_events_url":"https://api.github.com/users/anutron/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/pulls/63/commits","review_comments_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/pulls/63/comments","review_comment_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/issues/63/comments","statuses_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/statuses/0196d21c19409640c5918691fdddf016b007611c","head":{"label":"davywentworth:spin-on-click-timeout","ref":"spin-on-click-timeout","sha":"0196d21c19409640c5918691fdddf016b007611c","user":{"login":"davywentworth","id":877628,"avatar_url":"https://avatars.githubusercontent.com/u/877628?v=3","gravatar_id":"","url":"https://api.github.com/users/davywentworth","html_url":"https://github.com/davywentworth","followers_url":"https://api.github.com/users/davywentworth/followers","following_url":"https://api.github.com/users/davywentworth/following{/other_user}","gists_url":"https://api.github.com/users/davywentworth/gists{/gist_id}","starred_url":"https://api.github.com/users/davywentworth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davywentworth/subscriptions","organizations_url":"https://api.github.com/users/davywentworth/orgs","repos_url":"https://api.github.com/users/davywentworth/repos","events_url":"https://api.github.com/users/davywentworth/events{/privacy}","received_events_url":"https://api.github.com/users/davywentworth/received_events","type":"User","site_admin":false},"repo":{"id":21591889,"name":"behavior-ui","full_name":"davywentworth/behavior-ui","owner":{"login":"davywentworth","id":877628,"avatar_url":"https://avatars.githubusercontent.com/u/877628?v=3","gravatar_id":"","url":"https://api.github.com/users/davywentworth","html_url":"https://github.com/davywentworth","followers_url":"https://api.github.com/users/davywentworth/followers","following_url":"https://api.github.com/users/davywentworth/following{/other_user}","gists_url":"https://api.github.com/users/davywentworth/gists{/gist_id}","starred_url":"https://api.github.com/users/davywentworth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davywentworth/subscriptions","organizations_url":"https://api.github.com/users/davywentworth/orgs","repos_url":"https://api.github.com/users/davywentworth/repos","events_url":"https://api.github.com/users/davywentworth/events{/privacy}","received_events_url":"https://api.github.com/users/davywentworth/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/davywentworth/behavior-ui","description":"","fork":true,"url":"https://api.github.com/repos/davywentworth/behavior-ui","forks_url":"https://api.github.com/repos/davywentworth/behavior-ui/forks","keys_url":"https://api.github.com/repos/davywentworth/behavior-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/davywentworth/behavior-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/davywentworth/behavior-ui/teams","hooks_url":"https://api.github.com/repos/davywentworth/behavior-ui/hooks","issue_events_url":"https://api.github.com/repos/davywentworth/behavior-ui/issues/events{/number}","events_url":"https://api.github.com/repos/davywentworth/behavior-ui/events","assignees_url":"https://api.github.com/repos/davywentworth/behavior-ui/assignees{/user}","branches_url":"https://api.github.com/repos/davywentworth/behavior-ui/branches{/branch}","tags_url":"https://api.github.com/repos/davywentworth/behavior-ui/tags","blobs_url":"https://api.github.com/repos/davywentworth/behavior-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/davywentworth/behavior-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/davywentworth/behavior-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/davywentworth/behavior-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/davywentworth/behavior-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/davywentworth/behavior-ui/languages","stargazers_url":"https://api.github.com/repos/davywentworth/behavior-ui/stargazers","contributors_url":"https://api.github.com/repos/davywentworth/behavior-ui/contributors","subscribers_url":"https://api.github.com/repos/davywentworth/behavior-ui/subscribers","subscription_url":"https://api.github.com/repos/davywentworth/behavior-ui/subscription","commits_url":"https://api.github.com/repos/davywentworth/behavior-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/davywentworth/behavior-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/davywentworth/behavior-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/davywentworth/behavior-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/davywentworth/behavior-ui/contents/{+path}","compare_url":"https://api.github.com/repos/davywentworth/behavior-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/davywentworth/behavior-ui/merges","archive_url":"https://api.github.com/repos/davywentworth/behavior-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/davywentworth/behavior-ui/downloads","issues_url":"https://api.github.com/repos/davywentworth/behavior-ui/issues{/number}","pulls_url":"https://api.github.com/repos/davywentworth/behavior-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/davywentworth/behavior-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/davywentworth/behavior-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/davywentworth/behavior-ui/labels{/name}","releases_url":"https://api.github.com/repos/davywentworth/behavior-ui/releases{/id}","deployments_url":"https://api.github.com/repos/davywentworth/behavior-ui/deployments","created_at":"2014-07-08T00:28:07Z","updated_at":"2014-11-20T18:11:56Z","pushed_at":"2016-07-13T20:55:11Z","git_url":"git://github.com/davywentworth/behavior-ui.git","ssh_url":"git@github.com:davywentworth/behavior-ui.git","clone_url":"https://github.com/davywentworth/behavior-ui.git","svn_url":"https://github.com/davywentworth/behavior-ui","homepage":null,"size":6171,"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":"Behavior-UI:master","ref":"master","sha":"7e78336f428fea0acc1eb868d8005dafb57e0f5d","user":{"login":"Behavior-UI","id":7810412,"avatar_url":"https://avatars.githubusercontent.com/u/7810412?v=3","gravatar_id":"","url":"https://api.github.com/users/Behavior-UI","html_url":"https://github.com/Behavior-UI","followers_url":"https://api.github.com/users/Behavior-UI/followers","following_url":"https://api.github.com/users/Behavior-UI/following{/other_user}","gists_url":"https://api.github.com/users/Behavior-UI/gists{/gist_id}","starred_url":"https://api.github.com/users/Behavior-UI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Behavior-UI/subscriptions","organizations_url":"https://api.github.com/users/Behavior-UI/orgs","repos_url":"https://api.github.com/users/Behavior-UI/repos","events_url":"https://api.github.com/users/Behavior-UI/events{/privacy}","received_events_url":"https://api.github.com/users/Behavior-UI/received_events","type":"Organization","site_admin":false},"repo":{"id":21099747,"name":"behavior-ui","full_name":"Behavior-UI/behavior-ui","owner":{"login":"Behavior-UI","id":7810412,"avatar_url":"https://avatars.githubusercontent.com/u/7810412?v=3","gravatar_id":"","url":"https://api.github.com/users/Behavior-UI","html_url":"https://github.com/Behavior-UI","followers_url":"https://api.github.com/users/Behavior-UI/followers","following_url":"https://api.github.com/users/Behavior-UI/following{/other_user}","gists_url":"https://api.github.com/users/Behavior-UI/gists{/gist_id}","starred_url":"https://api.github.com/users/Behavior-UI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Behavior-UI/subscriptions","organizations_url":"https://api.github.com/users/Behavior-UI/orgs","repos_url":"https://api.github.com/users/Behavior-UI/repos","events_url":"https://api.github.com/users/Behavior-UI/events{/privacy}","received_events_url":"https://api.github.com/users/Behavior-UI/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Behavior-UI/behavior-ui","description":"A set of UI components based on Bootstrap and MooTools.","fork":false,"url":"https://api.github.com/repos/Behavior-UI/behavior-ui","forks_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/forks","keys_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/teams","hooks_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/hooks","issue_events_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/issues/events{/number}","events_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/events","assignees_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/assignees{/user}","branches_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/branches{/branch}","tags_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/tags","blobs_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/languages","stargazers_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/stargazers","contributors_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/contributors","subscribers_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/subscribers","subscription_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/subscription","commits_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/contents/{+path}","compare_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/merges","archive_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/downloads","issues_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/issues{/number}","pulls_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/labels{/name}","releases_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/releases{/id}","deployments_url":"https://api.github.com/repos/Behavior-UI/behavior-ui/deployments","created_at":"2014-06-22T17:17:31Z","updated_at":"2016-02-10T07:51:43Z","pushed_at":"2016-07-13T20:56:26Z","git_url":"git://github.com/Behavior-UI/behavior-ui.git","ssh_url":"git@github.com:Behavior-UI/behavior-ui.git","clone_url":"https://github.com/Behavior-UI/behavior-ui.git","svn_url":"https://github.com/Behavior-UI/behavior-ui","homepage":"http://behaviorui.com","size":6209,"stargazers_count":19,"watchers_count":19,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":1,"forks":7,"open_issues":1,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Behavior-UI/behavior-ui/pulls/63"},"html":{"href":"https://github.com/Behavior-UI/behavior-ui/pull/63"},"issue":{"href":"https://api.github.com/repos/Behavior-UI/behavior-ui/issues/63"},"comments":{"href":"https://api.github.com/repos/Behavior-UI/behavior-ui/issues/63/comments"},"review_comments":{"href":"https://api.github.com/repos/Behavior-UI/behavior-ui/pulls/63/comments"},"review_comment":{"href":"https://api.github.com/repos/Behavior-UI/behavior-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Behavior-UI/behavior-ui/pulls/63/commits"},"statuses":{"href":"https://api.github.com/repos/Behavior-UI/behavior-ui/statuses/0196d21c19409640c5918691fdddf016b007611c"}}}}
{"actor":{"display_login":"anutron"}}