{"action":"created","comment":{"url":"https://api.github.com/repos/angular/angular.js/pulls/comments/27020135","id":27020135,"diff_hunk":"@@ -0,0 +1,669 @@\n+'use strict';\n+\n+// Detect proper transitionend/animationend event names.\n+var CSS_PREFIX = '', TRANSITION_PROP, TRANSITIONEND_EVENT, ANIMATION_PROP, ANIMATIONEND_EVENT;\n+\n+// If unprefixed events are not supported but webkit-prefixed are, use the latter.\n+// Otherwise, just use W3C names, browsers not supporting them at all will just ignore them.\n+// Note: Chrome implements `window.onwebkitanimationend` and doesn't implement `window.onanimationend`\n+// but at the same time dispatches the `animationend` event and not `webkitAnimationEnd`.\n+// Register both events in case `window.onanimationend` is not supported because of that,\n+// do the same for `transitionend` as Safari is likely to exhibit similar behavior.\n+// Also, the only modern browser that uses vendor prefixes for transitions/keyframes is webkit\n+// therefore there is no reason to test anymore for other vendor prefixes:\n+// http://caniuse.com/#search=transition\n+if (window.ontransitionend === undefined && window.onwebkittransitionend !== undefined) {\n+  CSS_PREFIX = '-webkit-';\n+  TRANSITION_PROP = 'WebkitTransition';\n+  TRANSITIONEND_EVENT = 'webkitTransitionEnd transitionend';\n+} else {\n+  TRANSITION_PROP = 'transition';\n+  TRANSITIONEND_EVENT = 'transitionend';\n+}\n+\n+if (window.onanimationend === undefined && window.onwebkitanimationend !== undefined) {\n+  CSS_PREFIX = '-webkit-';\n+  ANIMATION_PROP = 'WebkitAnimation';\n+  ANIMATIONEND_EVENT = 'webkitAnimationEnd animationend';\n+} else {\n+  ANIMATION_PROP = 'animation';\n+  ANIMATIONEND_EVENT = 'animationend';\n+}\n+\n+var DURATION_KEY = 'Duration';\n+var PROPERTY_KEY = 'Property';\n+var DELAY_KEY = 'Delay';\n+var TIMING_KEY = 'TimingFunction';\n+var ANIMATION_ITERATION_COUNT_KEY = 'IterationCount';\n+var ANIMATION_PLAYSTATE_KEY = 'PlayState';\n+var ELAPSED_TIME_MAX_DECIMAL_PLACES = 3;\n+var CLOSING_TIME_BUFFER = 1.5;\n+var ONE_SECOND = 1000;\n+var BASE_TEN = 10;\n+\n+function computeCSSStyles($window, element, properties) {\n+  var styles = Object.create(null);\n+  var detectedStyles = $window.getComputedStyle(element) || {};\n+  forEach(properties, function(style, prop) {\n+    var val = detectedStyles[style];\n+    // only numerical-based values have a digit as the first value\n+    if (val) {\n+      if (val.charAt(0) >= 0) {\n+        val = parseMaxTime(val);\n+      }\n+      styles[prop] = val;\n+    }\n+  });\n+\n+  return styles;\n+}\n+\n+function parseMaxTime(str) {\n+  var maxValue = 0;\n+  var values = str.split(/\\s*,\\s*/);\n+  forEach(values, function(value) {\n+    maxValue = Math.max(parseFloat(value) || 0, maxValue);\n+  });\n+  return maxValue;\n+}\n+\n+function getCssTransitionDurationStyle(duration, applyOnlyDuration) {\n+  var style = TRANSITION_PROP;\n+  var value = duration + 's';\n+  if (applyOnlyDuration) {\n+    style += DURATION_KEY;\n+  } else {\n+    value += ' linear all';\n+  }\n+  return [style, value];\n+}\n+\n+function getCssKeyframeDurationStyle(duration) {\n+  return [ANIMATION_PROP + DURATION_KEY, duration + 's'];\n+}\n+\n+function getCssDelayStyle(delay, isKeyframeAnimation) {\n+  var prop = (isKeyframeAnimation ? ANIMATION_PROP : TRANSITION_PROP) + DELAY_KEY;\n+  return [prop, delay + 's'];\n+}\n+\n+function blockTransitions(node, applyBlock) {\n+  var value = applyBlock ? 'none' : '';\n+  var key = TRANSITION_PROP + PROPERTY_KEY;\n+  applyInlineStyle(node, key, value);","path":"src/ngAnimate/animateCss.js","position":93,"original_position":93,"commit_id":"ae4d0824911f9f2117673e3f41c31db0484090d0","original_commit_id":"ae4d0824911f9f2117673e3f41c31db0484090d0","user":{"login":"petebacondarwin","id":15655,"avatar_url":"https://avatars.githubusercontent.com/u/15655?v=3","gravatar_id":"","url":"https://api.github.com/users/petebacondarwin","html_url":"https://github.com/petebacondarwin","followers_url":"https://api.github.com/users/petebacondarwin/followers","following_url":"https://api.github.com/users/petebacondarwin/following{/other_user}","gists_url":"https://api.github.com/users/petebacondarwin/gists{/gist_id}","starred_url":"https://api.github.com/users/petebacondarwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petebacondarwin/subscriptions","organizations_url":"https://api.github.com/users/petebacondarwin/orgs","repos_url":"https://api.github.com/users/petebacondarwin/repos","events_url":"https://api.github.com/users/petebacondarwin/events{/privacy}","received_events_url":"https://api.github.com/users/petebacondarwin/received_events","type":"User","site_admin":false},"body":"Change this to...\r\n\r\n```js\r\napplyInlineStyle(node, [key, value]);\r\n```","created_at":"2015-03-24T11:44:17Z","updated_at":"2015-03-24T11:44:17Z","html_url":"https://github.com/angular/angular.js/pull/11336#discussion_r27020135","pull_request_url":"https://api.github.com/repos/angular/angular.js/pulls/11336","_links":{"self":{"href":"https://api.github.com/repos/angular/angular.js/pulls/comments/27020135"},"html":{"href":"https://github.com/angular/angular.js/pull/11336#discussion_r27020135"},"pull_request":{"href":"https://api.github.com/repos/angular/angular.js/pulls/11336"}}},"pull_request":{"url":"https://api.github.com/repos/angular/angular.js/pulls/11336","id":31274710,"html_url":"https://github.com/angular/angular.js/pull/11336","diff_url":"https://github.com/angular/angular.js/pull/11336.diff","patch_url":"https://github.com/angular/angular.js/pull/11336.patch","issue_url":"https://api.github.com/repos/angular/angular.js/issues/11336","number":11336,"state":"open","locked":false,"title":"ngAnimate 1.4 Refactor","user":{"login":"matsko","id":93018,"avatar_url":"https://avatars.githubusercontent.com/u/93018?v=3","gravatar_id":"","url":"https://api.github.com/users/matsko","html_url":"https://github.com/matsko","followers_url":"https://api.github.com/users/matsko/followers","following_url":"https://api.github.com/users/matsko/following{/other_user}","gists_url":"https://api.github.com/users/matsko/gists{/gist_id}","starred_url":"https://api.github.com/users/matsko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matsko/subscriptions","organizations_url":"https://api.github.com/users/matsko/orgs","repos_url":"https://api.github.com/users/matsko/repos","events_url":"https://api.github.com/users/matsko/events{/privacy}","received_events_url":"https://api.github.com/users/matsko/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-16T19:12:12Z","updated_at":"2015-03-24T11:44:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8aa743340776d104981e00760d848b3ec0a8ff02","assignee":null,"milestone":{"url":"https://api.github.com/repos/angular/angular.js/milestones/88","html_url":"https://github.com/angular/angular.js/milestones/1.4.0-beta.7%20/%201.3.16","labels_url":"https://api.github.com/repos/angular/angular.js/milestones/88/labels","id":993794,"number":88,"title":"1.4.0-beta.7 / 1.3.16","description":"","creator":{"login":"petebacondarwin","id":15655,"avatar_url":"https://avatars.githubusercontent.com/u/15655?v=3","gravatar_id":"","url":"https://api.github.com/users/petebacondarwin","html_url":"https://github.com/petebacondarwin","followers_url":"https://api.github.com/users/petebacondarwin/followers","following_url":"https://api.github.com/users/petebacondarwin/following{/other_user}","gists_url":"https://api.github.com/users/petebacondarwin/gists{/gist_id}","starred_url":"https://api.github.com/users/petebacondarwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petebacondarwin/subscriptions","organizations_url":"https://api.github.com/users/petebacondarwin/orgs","repos_url":"https://api.github.com/users/petebacondarwin/repos","events_url":"https://api.github.com/users/petebacondarwin/events{/privacy}","received_events_url":"https://api.github.com/users/petebacondarwin/received_events","type":"User","site_admin":false},"open_issues":23,"closed_issues":8,"state":"open","created_at":"2015-02-24T17:57:38Z","updated_at":"2015-03-24T07:53:16Z","due_on":"2015-03-24T00:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/angular/angular.js/pulls/11336/commits","review_comments_url":"https://api.github.com/repos/angular/angular.js/pulls/11336/comments","review_comment_url":"https://api.github.com/repos/angular/angular.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/angular/angular.js/issues/11336/comments","statuses_url":"https://api.github.com/repos/angular/angular.js/statuses/ae4d0824911f9f2117673e3f41c31db0484090d0","head":{"label":"matsko:ng_animate_14","ref":"ng_animate_14","sha":"ae4d0824911f9f2117673e3f41c31db0484090d0","user":{"login":"matsko","id":93018,"avatar_url":"https://avatars.githubusercontent.com/u/93018?v=3","gravatar_id":"","url":"https://api.github.com/users/matsko","html_url":"https://github.com/matsko","followers_url":"https://api.github.com/users/matsko/followers","following_url":"https://api.github.com/users/matsko/following{/other_user}","gists_url":"https://api.github.com/users/matsko/gists{/gist_id}","starred_url":"https://api.github.com/users/matsko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matsko/subscriptions","organizations_url":"https://api.github.com/users/matsko/orgs","repos_url":"https://api.github.com/users/matsko/repos","events_url":"https://api.github.com/users/matsko/events{/privacy}","received_events_url":"https://api.github.com/users/matsko/received_events","type":"User","site_admin":false},"repo":{"id":8178278,"name":"angular.js","full_name":"matsko/angular.js","owner":{"login":"matsko","id":93018,"avatar_url":"https://avatars.githubusercontent.com/u/93018?v=3","gravatar_id":"","url":"https://api.github.com/users/matsko","html_url":"https://github.com/matsko","followers_url":"https://api.github.com/users/matsko/followers","following_url":"https://api.github.com/users/matsko/following{/other_user}","gists_url":"https://api.github.com/users/matsko/gists{/gist_id}","starred_url":"https://api.github.com/users/matsko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matsko/subscriptions","organizations_url":"https://api.github.com/users/matsko/orgs","repos_url":"https://api.github.com/users/matsko/repos","events_url":"https://api.github.com/users/matsko/events{/privacy}","received_events_url":"https://api.github.com/users/matsko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/matsko/angular.js","description":"","fork":true,"url":"https://api.github.com/repos/matsko/angular.js","forks_url":"https://api.github.com/repos/matsko/angular.js/forks","keys_url":"https://api.github.com/repos/matsko/angular.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matsko/angular.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matsko/angular.js/teams","hooks_url":"https://api.github.com/repos/matsko/angular.js/hooks","issue_events_url":"https://api.github.com/repos/matsko/angular.js/issues/events{/number}","events_url":"https://api.github.com/repos/matsko/angular.js/events","assignees_url":"https://api.github.com/repos/matsko/angular.js/assignees{/user}","branches_url":"https://api.github.com/repos/matsko/angular.js/branches{/branch}","tags_url":"https://api.github.com/repos/matsko/angular.js/tags","blobs_url":"https://api.github.com/repos/matsko/angular.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matsko/angular.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matsko/angular.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/matsko/angular.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matsko/angular.js/statuses/{sha}","languages_url":"https://api.github.com/repos/matsko/angular.js/languages","stargazers_url":"https://api.github.com/repos/matsko/angular.js/stargazers","contributors_url":"https://api.github.com/repos/matsko/angular.js/contributors","subscribers_url":"https://api.github.com/repos/matsko/angular.js/subscribers","subscription_url":"https://api.github.com/repos/matsko/angular.js/subscription","commits_url":"https://api.github.com/repos/matsko/angular.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/matsko/angular.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/matsko/angular.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/matsko/angular.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/matsko/angular.js/contents/{+path}","compare_url":"https://api.github.com/repos/matsko/angular.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matsko/angular.js/merges","archive_url":"https://api.github.com/repos/matsko/angular.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matsko/angular.js/downloads","issues_url":"https://api.github.com/repos/matsko/angular.js/issues{/number}","pulls_url":"https://api.github.com/repos/matsko/angular.js/pulls{/number}","milestones_url":"https://api.github.com/repos/matsko/angular.js/milestones{/number}","notifications_url":"https://api.github.com/repos/matsko/angular.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matsko/angular.js/labels{/name}","releases_url":"https://api.github.com/repos/matsko/angular.js/releases{/id}","created_at":"2013-02-13T11:54:29Z","updated_at":"2015-03-04T12:22:23Z","pushed_at":"2015-03-24T07:59:25Z","git_url":"git://github.com/matsko/angular.js.git","ssh_url":"git@github.com:matsko/angular.js.git","clone_url":"https://github.com/matsko/angular.js.git","svn_url":"https://github.com/matsko/angular.js","homepage":"http://angularjs.org","size":65677,"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":"angular:master","ref":"master","sha":"b8dbdb0c5e2cd176c6d94d60f781cfc02e646592","user":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"repo":{"id":460078,"name":"angular.js","full_name":"angular/angular.js","owner":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/angular/angular.js","description":"HTML enhanced for web apps","fork":false,"url":"https://api.github.com/repos/angular/angular.js","forks_url":"https://api.github.com/repos/angular/angular.js/forks","keys_url":"https://api.github.com/repos/angular/angular.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angular/angular.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angular/angular.js/teams","hooks_url":"https://api.github.com/repos/angular/angular.js/hooks","issue_events_url":"https://api.github.com/repos/angular/angular.js/issues/events{/number}","events_url":"https://api.github.com/repos/angular/angular.js/events","assignees_url":"https://api.github.com/repos/angular/angular.js/assignees{/user}","branches_url":"https://api.github.com/repos/angular/angular.js/branches{/branch}","tags_url":"https://api.github.com/repos/angular/angular.js/tags","blobs_url":"https://api.github.com/repos/angular/angular.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angular/angular.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angular/angular.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/angular/angular.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angular/angular.js/statuses/{sha}","languages_url":"https://api.github.com/repos/angular/angular.js/languages","stargazers_url":"https://api.github.com/repos/angular/angular.js/stargazers","contributors_url":"https://api.github.com/repos/angular/angular.js/contributors","subscribers_url":"https://api.github.com/repos/angular/angular.js/subscribers","subscription_url":"https://api.github.com/repos/angular/angular.js/subscription","commits_url":"https://api.github.com/repos/angular/angular.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/angular/angular.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/angular/angular.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/angular/angular.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/angular/angular.js/contents/{+path}","compare_url":"https://api.github.com/repos/angular/angular.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angular/angular.js/merges","archive_url":"https://api.github.com/repos/angular/angular.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angular/angular.js/downloads","issues_url":"https://api.github.com/repos/angular/angular.js/issues{/number}","pulls_url":"https://api.github.com/repos/angular/angular.js/pulls{/number}","milestones_url":"https://api.github.com/repos/angular/angular.js/milestones{/number}","notifications_url":"https://api.github.com/repos/angular/angular.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angular/angular.js/labels{/name}","releases_url":"https://api.github.com/repos/angular/angular.js/releases{/id}","created_at":"2010-01-06T00:34:37Z","updated_at":"2015-03-24T10:54:27Z","pushed_at":"2015-03-24T07:59:36Z","git_url":"git://github.com/angular/angular.js.git","ssh_url":"git@github.com:angular/angular.js.git","clone_url":"https://github.com/angular/angular.js.git","svn_url":"https://github.com/angular/angular.js","homepage":"http://angularjs.org","size":226661,"stargazers_count":36657,"watchers_count":36657,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15093,"mirror_url":null,"open_issues_count":1138,"forks":15093,"open_issues":1138,"watchers":36657,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angular/angular.js/pulls/11336"},"html":{"href":"https://github.com/angular/angular.js/pull/11336"},"issue":{"href":"https://api.github.com/repos/angular/angular.js/issues/11336"},"comments":{"href":"https://api.github.com/repos/angular/angular.js/issues/11336/comments"},"review_comments":{"href":"https://api.github.com/repos/angular/angular.js/pulls/11336/comments"},"review_comment":{"href":"https://api.github.com/repos/angular/angular.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/angular/angular.js/pulls/11336/commits"},"statuses":{"href":"https://api.github.com/repos/angular/angular.js/statuses/ae4d0824911f9f2117673e3f41c31db0484090d0"}}}}