{"action":"created","issue":{"url":"https://api.github.com/repos/d-oliveros/angular-sticky/issues/29","labels_url":"https://api.github.com/repos/d-oliveros/angular-sticky/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/d-oliveros/angular-sticky/issues/29/comments","events_url":"https://api.github.com/repos/d-oliveros/angular-sticky/issues/29/events","html_url":"https://github.com/d-oliveros/angular-sticky/issues/29","id":54054689,"number":29,"title":"Sticky class not being set","user":{"login":"bubbleheadinc","id":4236279,"avatar_url":"https://avatars.githubusercontent.com/u/4236279?v=3","gravatar_id":"","url":"https://api.github.com/users/bubbleheadinc","html_url":"https://github.com/bubbleheadinc","followers_url":"https://api.github.com/users/bubbleheadinc/followers","following_url":"https://api.github.com/users/bubbleheadinc/following{/other_user}","gists_url":"https://api.github.com/users/bubbleheadinc/gists{/gist_id}","starred_url":"https://api.github.com/users/bubbleheadinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bubbleheadinc/subscriptions","organizations_url":"https://api.github.com/users/bubbleheadinc/orgs","repos_url":"https://api.github.com/users/bubbleheadinc/repos","events_url":"https://api.github.com/users/bubbleheadinc/events{/privacy}","received_events_url":"https://api.github.com/users/bubbleheadinc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-12T13:44:14Z","updated_at":"2015-01-12T13:55:54Z","closed_at":null,"body":"Hi. Thanks for the new version. I installed via bower and get v1.7.7 and it no longer sets the sticky-class when the attribute is set, or the default. "},"comment":{"url":"https://api.github.com/repos/d-oliveros/angular-sticky/issues/comments/69572526","html_url":"https://github.com/d-oliveros/angular-sticky/issues/29#issuecomment-69572526","issue_url":"https://api.github.com/repos/d-oliveros/angular-sticky/issues/29","id":69572526,"user":{"login":"bubbleheadinc","id":4236279,"avatar_url":"https://avatars.githubusercontent.com/u/4236279?v=3","gravatar_id":"","url":"https://api.github.com/users/bubbleheadinc","html_url":"https://github.com/bubbleheadinc","followers_url":"https://api.github.com/users/bubbleheadinc/followers","following_url":"https://api.github.com/users/bubbleheadinc/following{/other_user}","gists_url":"https://api.github.com/users/bubbleheadinc/gists{/gist_id}","starred_url":"https://api.github.com/users/bubbleheadinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bubbleheadinc/subscriptions","organizations_url":"https://api.github.com/users/bubbleheadinc/orgs","repos_url":"https://api.github.com/users/bubbleheadinc/repos","events_url":"https://api.github.com/users/bubbleheadinc/events{/privacy}","received_events_url":"https://api.github.com/users/bubbleheadinc/received_events","type":"User","site_admin":false},"created_at":"2015-01-12T13:55:54Z","updated_at":"2015-01-12T13:55:54Z","body":"Looks like the issue is on line: 145. Shouldn't the addClass be outside the bodyClass condition?\r\n\r\n```\r\nif ( bodyClass ) {\r\n  $body.addClass(bodyClass);\r\n  $elem.addClass(stickyClass);\r\n}\r\n```\r\nWorks if here...\r\n```\r\n$elem\r\n  .addClass(stickyClass)\r\n  .css('width',      elem.offsetWidth+'px')\r\n  ...\r\n  if ( anchor === 'bottom' ) {\r\n    $elem.css('margin-bottom', 0);\r\n }\r\n```\r\n\r\nThanks for your time!\r\n"}}