{"action":"created","comment":{"url":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/comments/22874936","id":22874936,"diff_hunk":"@@ -0,0 +1,161 @@\n+define([\n+  \"jquery\",\n+  \"lib/utils/debounce\",\n+  \"lib/utils/throttle\",\n+  \"polyfills/function_bind\"\n+], function($, debounce, throttle) {\n+\n+  \"use strict\";\n+\n+  function Sticky($target, options) {\n+    var defaults = {\n+      minWidth: 1024,","path":"app/assets/javascripts/lib/utils/sticky.js","position":12,"original_position":12,"commit_id":"d9982ca2621ae11526884660428cdaa0e6cf9758","original_commit_id":"d9982ca2621ae11526884660428cdaa0e6cf9758","user":{"login":"i-like-robots","id":271645,"avatar_url":"https://avatars.githubusercontent.com/u/271645?v=3","gravatar_id":"","url":"https://api.github.com/users/i-like-robots","html_url":"https://github.com/i-like-robots","followers_url":"https://api.github.com/users/i-like-robots/followers","following_url":"https://api.github.com/users/i-like-robots/following{/other_user}","gists_url":"https://api.github.com/users/i-like-robots/gists{/gist_id}","starred_url":"https://api.github.com/users/i-like-robots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/i-like-robots/subscriptions","organizations_url":"https://api.github.com/users/i-like-robots/orgs","repos_url":"https://api.github.com/users/i-like-robots/repos","events_url":"https://api.github.com/users/i-like-robots/events{/privacy}","received_events_url":"https://api.github.com/users/i-like-robots/received_events","type":"User","site_admin":false},"body":"I don't think it ties it to the ad rail necessarily, I think it's a reasonable feature to have in a world of responsive things. I didn't find a sticky JS implementation that considered behaviour changing across breakpoints.\r\n\r\nAn alternative approach would be to hand this control over to another module (ALA Groundwork :wink: https://github.com/i-like-robots/groundwork-components/blob/master/src/js/directive/respond.js) but we're not setup for that. There's also the issue that there is a third case in addition to `init` and `teardown` - `refresh`.","created_at":"2015-01-13T16:45:19Z","updated_at":"2015-01-13T16:45:19Z","html_url":"https://github.com/lonelyplanet/rizzo/pull/1186#discussion_r22874936","pull_request_url":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/1186","_links":{"self":{"href":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/comments/22874936"},"html":{"href":"https://github.com/lonelyplanet/rizzo/pull/1186#discussion_r22874936"},"pull_request":{"href":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/1186"}}},"pull_request":{"url":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/1186","id":27279347,"html_url":"https://github.com/lonelyplanet/rizzo/pull/1186","diff_url":"https://github.com/lonelyplanet/rizzo/pull/1186.diff","patch_url":"https://github.com/lonelyplanet/rizzo/pull/1186.patch","issue_url":"https://api.github.com/repos/lonelyplanet/rizzo/issues/1186","number":1186,"state":"open","locked":false,"title":"Sticky things for sticky people","user":{"login":"i-like-robots","id":271645,"avatar_url":"https://avatars.githubusercontent.com/u/271645?v=3","gravatar_id":"","url":"https://api.github.com/users/i-like-robots","html_url":"https://github.com/i-like-robots","followers_url":"https://api.github.com/users/i-like-robots/followers","following_url":"https://api.github.com/users/i-like-robots/following{/other_user}","gists_url":"https://api.github.com/users/i-like-robots/gists{/gist_id}","starred_url":"https://api.github.com/users/i-like-robots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/i-like-robots/subscriptions","organizations_url":"https://api.github.com/users/i-like-robots/orgs","repos_url":"https://api.github.com/users/i-like-robots/repos","events_url":"https://api.github.com/users/i-like-robots/events{/privacy}","received_events_url":"https://api.github.com/users/i-like-robots/received_events","type":"User","site_admin":false},"body":"- Adds a throttle util to complement debounce\r\n- Adds a sticky util to make stuff sticky\r\n\r\n![sticky](https://cloud.githubusercontent.com/assets/271645/5723140/9d2d4a12-9b39-11e4-8a7f-9c08e9ea16cf.gif)\r\n\r\nJasmine green.","created_at":"2015-01-13T15:35:02Z","updated_at":"2015-01-13T16:45:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2cb2a78d437365c8fc1e2323f1c693b5899f2a5d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/1186/commits","review_comments_url":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/1186/comments","review_comment_url":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/comments/{number}","comments_url":"https://api.github.com/repos/lonelyplanet/rizzo/issues/1186/comments","statuses_url":"https://api.github.com/repos/lonelyplanet/rizzo/statuses/d9982ca2621ae11526884660428cdaa0e6cf9758","head":{"label":"lonelyplanet:matth/sticky-things","ref":"matth/sticky-things","sha":"d9982ca2621ae11526884660428cdaa0e6cf9758","user":{"login":"lonelyplanet","id":114767,"avatar_url":"https://avatars.githubusercontent.com/u/114767?v=3","gravatar_id":"","url":"https://api.github.com/users/lonelyplanet","html_url":"https://github.com/lonelyplanet","followers_url":"https://api.github.com/users/lonelyplanet/followers","following_url":"https://api.github.com/users/lonelyplanet/following{/other_user}","gists_url":"https://api.github.com/users/lonelyplanet/gists{/gist_id}","starred_url":"https://api.github.com/users/lonelyplanet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonelyplanet/subscriptions","organizations_url":"https://api.github.com/users/lonelyplanet/orgs","repos_url":"https://api.github.com/users/lonelyplanet/repos","events_url":"https://api.github.com/users/lonelyplanet/events{/privacy}","received_events_url":"https://api.github.com/users/lonelyplanet/received_events","type":"Organization","site_admin":false},"repo":{"id":4184894,"name":"rizzo","full_name":"lonelyplanet/rizzo","owner":{"login":"lonelyplanet","id":114767,"avatar_url":"https://avatars.githubusercontent.com/u/114767?v=3","gravatar_id":"","url":"https://api.github.com/users/lonelyplanet","html_url":"https://github.com/lonelyplanet","followers_url":"https://api.github.com/users/lonelyplanet/followers","following_url":"https://api.github.com/users/lonelyplanet/following{/other_user}","gists_url":"https://api.github.com/users/lonelyplanet/gists{/gist_id}","starred_url":"https://api.github.com/users/lonelyplanet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonelyplanet/subscriptions","organizations_url":"https://api.github.com/users/lonelyplanet/orgs","repos_url":"https://api.github.com/users/lonelyplanet/repos","events_url":"https://api.github.com/users/lonelyplanet/events{/privacy}","received_events_url":"https://api.github.com/users/lonelyplanet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lonelyplanet/rizzo","description":"UI Layer for lonelyplanet.com","fork":false,"url":"https://api.github.com/repos/lonelyplanet/rizzo","forks_url":"https://api.github.com/repos/lonelyplanet/rizzo/forks","keys_url":"https://api.github.com/repos/lonelyplanet/rizzo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lonelyplanet/rizzo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lonelyplanet/rizzo/teams","hooks_url":"https://api.github.com/repos/lonelyplanet/rizzo/hooks","issue_events_url":"https://api.github.com/repos/lonelyplanet/rizzo/issues/events{/number}","events_url":"https://api.github.com/repos/lonelyplanet/rizzo/events","assignees_url":"https://api.github.com/repos/lonelyplanet/rizzo/assignees{/user}","branches_url":"https://api.github.com/repos/lonelyplanet/rizzo/branches{/branch}","tags_url":"https://api.github.com/repos/lonelyplanet/rizzo/tags","blobs_url":"https://api.github.com/repos/lonelyplanet/rizzo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lonelyplanet/rizzo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lonelyplanet/rizzo/git/refs{/sha}","trees_url":"https://api.github.com/repos/lonelyplanet/rizzo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lonelyplanet/rizzo/statuses/{sha}","languages_url":"https://api.github.com/repos/lonelyplanet/rizzo/languages","stargazers_url":"https://api.github.com/repos/lonelyplanet/rizzo/stargazers","contributors_url":"https://api.github.com/repos/lonelyplanet/rizzo/contributors","subscribers_url":"https://api.github.com/repos/lonelyplanet/rizzo/subscribers","subscription_url":"https://api.github.com/repos/lonelyplanet/rizzo/subscription","commits_url":"https://api.github.com/repos/lonelyplanet/rizzo/commits{/sha}","git_commits_url":"https://api.github.com/repos/lonelyplanet/rizzo/git/commits{/sha}","comments_url":"https://api.github.com/repos/lonelyplanet/rizzo/comments{/number}","issue_comment_url":"https://api.github.com/repos/lonelyplanet/rizzo/issues/comments/{number}","contents_url":"https://api.github.com/repos/lonelyplanet/rizzo/contents/{+path}","compare_url":"https://api.github.com/repos/lonelyplanet/rizzo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lonelyplanet/rizzo/merges","archive_url":"https://api.github.com/repos/lonelyplanet/rizzo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lonelyplanet/rizzo/downloads","issues_url":"https://api.github.com/repos/lonelyplanet/rizzo/issues{/number}","pulls_url":"https://api.github.com/repos/lonelyplanet/rizzo/pulls{/number}","milestones_url":"https://api.github.com/repos/lonelyplanet/rizzo/milestones{/number}","notifications_url":"https://api.github.com/repos/lonelyplanet/rizzo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lonelyplanet/rizzo/labels{/name}","releases_url":"https://api.github.com/repos/lonelyplanet/rizzo/releases{/id}","created_at":"2012-04-30T17:06:06Z","updated_at":"2015-01-13T13:20:12Z","pushed_at":"2015-01-13T15:30:27Z","git_url":"git://github.com/lonelyplanet/rizzo.git","ssh_url":"git@github.com:lonelyplanet/rizzo.git","clone_url":"https://github.com/lonelyplanet/rizzo.git","svn_url":"https://github.com/lonelyplanet/rizzo","homepage":"","size":123236,"stargazers_count":295,"watchers_count":295,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":12,"forks":25,"open_issues":12,"watchers":295,"default_branch":"master"}},"base":{"label":"lonelyplanet:matth/responsify-at-last","ref":"matth/responsify-at-last","sha":"e1b22503d2648c9c212b4f296d430b997e8134e3","user":{"login":"lonelyplanet","id":114767,"avatar_url":"https://avatars.githubusercontent.com/u/114767?v=3","gravatar_id":"","url":"https://api.github.com/users/lonelyplanet","html_url":"https://github.com/lonelyplanet","followers_url":"https://api.github.com/users/lonelyplanet/followers","following_url":"https://api.github.com/users/lonelyplanet/following{/other_user}","gists_url":"https://api.github.com/users/lonelyplanet/gists{/gist_id}","starred_url":"https://api.github.com/users/lonelyplanet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonelyplanet/subscriptions","organizations_url":"https://api.github.com/users/lonelyplanet/orgs","repos_url":"https://api.github.com/users/lonelyplanet/repos","events_url":"https://api.github.com/users/lonelyplanet/events{/privacy}","received_events_url":"https://api.github.com/users/lonelyplanet/received_events","type":"Organization","site_admin":false},"repo":{"id":4184894,"name":"rizzo","full_name":"lonelyplanet/rizzo","owner":{"login":"lonelyplanet","id":114767,"avatar_url":"https://avatars.githubusercontent.com/u/114767?v=3","gravatar_id":"","url":"https://api.github.com/users/lonelyplanet","html_url":"https://github.com/lonelyplanet","followers_url":"https://api.github.com/users/lonelyplanet/followers","following_url":"https://api.github.com/users/lonelyplanet/following{/other_user}","gists_url":"https://api.github.com/users/lonelyplanet/gists{/gist_id}","starred_url":"https://api.github.com/users/lonelyplanet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonelyplanet/subscriptions","organizations_url":"https://api.github.com/users/lonelyplanet/orgs","repos_url":"https://api.github.com/users/lonelyplanet/repos","events_url":"https://api.github.com/users/lonelyplanet/events{/privacy}","received_events_url":"https://api.github.com/users/lonelyplanet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lonelyplanet/rizzo","description":"UI Layer for lonelyplanet.com","fork":false,"url":"https://api.github.com/repos/lonelyplanet/rizzo","forks_url":"https://api.github.com/repos/lonelyplanet/rizzo/forks","keys_url":"https://api.github.com/repos/lonelyplanet/rizzo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lonelyplanet/rizzo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lonelyplanet/rizzo/teams","hooks_url":"https://api.github.com/repos/lonelyplanet/rizzo/hooks","issue_events_url":"https://api.github.com/repos/lonelyplanet/rizzo/issues/events{/number}","events_url":"https://api.github.com/repos/lonelyplanet/rizzo/events","assignees_url":"https://api.github.com/repos/lonelyplanet/rizzo/assignees{/user}","branches_url":"https://api.github.com/repos/lonelyplanet/rizzo/branches{/branch}","tags_url":"https://api.github.com/repos/lonelyplanet/rizzo/tags","blobs_url":"https://api.github.com/repos/lonelyplanet/rizzo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lonelyplanet/rizzo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lonelyplanet/rizzo/git/refs{/sha}","trees_url":"https://api.github.com/repos/lonelyplanet/rizzo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lonelyplanet/rizzo/statuses/{sha}","languages_url":"https://api.github.com/repos/lonelyplanet/rizzo/languages","stargazers_url":"https://api.github.com/repos/lonelyplanet/rizzo/stargazers","contributors_url":"https://api.github.com/repos/lonelyplanet/rizzo/contributors","subscribers_url":"https://api.github.com/repos/lonelyplanet/rizzo/subscribers","subscription_url":"https://api.github.com/repos/lonelyplanet/rizzo/subscription","commits_url":"https://api.github.com/repos/lonelyplanet/rizzo/commits{/sha}","git_commits_url":"https://api.github.com/repos/lonelyplanet/rizzo/git/commits{/sha}","comments_url":"https://api.github.com/repos/lonelyplanet/rizzo/comments{/number}","issue_comment_url":"https://api.github.com/repos/lonelyplanet/rizzo/issues/comments/{number}","contents_url":"https://api.github.com/repos/lonelyplanet/rizzo/contents/{+path}","compare_url":"https://api.github.com/repos/lonelyplanet/rizzo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lonelyplanet/rizzo/merges","archive_url":"https://api.github.com/repos/lonelyplanet/rizzo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lonelyplanet/rizzo/downloads","issues_url":"https://api.github.com/repos/lonelyplanet/rizzo/issues{/number}","pulls_url":"https://api.github.com/repos/lonelyplanet/rizzo/pulls{/number}","milestones_url":"https://api.github.com/repos/lonelyplanet/rizzo/milestones{/number}","notifications_url":"https://api.github.com/repos/lonelyplanet/rizzo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lonelyplanet/rizzo/labels{/name}","releases_url":"https://api.github.com/repos/lonelyplanet/rizzo/releases{/id}","created_at":"2012-04-30T17:06:06Z","updated_at":"2015-01-13T13:20:12Z","pushed_at":"2015-01-13T15:30:27Z","git_url":"git://github.com/lonelyplanet/rizzo.git","ssh_url":"git@github.com:lonelyplanet/rizzo.git","clone_url":"https://github.com/lonelyplanet/rizzo.git","svn_url":"https://github.com/lonelyplanet/rizzo","homepage":"","size":123236,"stargazers_count":295,"watchers_count":295,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":12,"forks":25,"open_issues":12,"watchers":295,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/1186"},"html":{"href":"https://github.com/lonelyplanet/rizzo/pull/1186"},"issue":{"href":"https://api.github.com/repos/lonelyplanet/rizzo/issues/1186"},"comments":{"href":"https://api.github.com/repos/lonelyplanet/rizzo/issues/1186/comments"},"review_comments":{"href":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/1186/comments"},"review_comment":{"href":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/1186/commits"},"statuses":{"href":"https://api.github.com/repos/lonelyplanet/rizzo/statuses/d9982ca2621ae11526884660428cdaa0e6cf9758"}}}}