{:uriI"×file:///Users/byroot/workspace/shopify/shipit-engine/app/assets/javascripts/task/sticky_element.js.coffee?type=application/javascript&pipeline=self&id=5b81813b5f830ffd13c015072435448d1f096b263f20cc4b88f9d4dbf8851b55:ET:load_pathI"I/Users/byroot/workspace/shopify/shipit-engine/app/assets/javascripts;T: filenameI"g/Users/byroot/workspace/shopify/shipit-engine/app/assets/javascripts/task/sticky_element.js.coffee;T: nameI"task/sticky_element;T:logical_pathI" task/sticky_element.self.js;T:content_typeI"application/javascript;T: sourceI"‡(function() { var bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; this.StickyElement = (function() { StickyElement.init = function(selector) { var $element; $element = $(selector); if (!$element.length) { return; } return new this($element); }; function StickyElement($element1) { this.$element = $element1; this.refresh = bind(this.refresh, this); this.staticElementTop = this.$element.position().top; this.refresh(); } StickyElement.prototype.refresh = function() { this.toggleStickyClass(); return window.requestAnimationFrame(this.refresh); }; StickyElement.prototype.toggleStickyClass = function() { return this.$element.toggleClass('sticky', window.pageYOffset >= this.staticElementTop); }; return StickyElement; })(); }).call(this); ;T: metadata{ :dependencieso:Set: @hash{ I"environment-version;TTI"environment-paths;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"ufile-digest:///Users/byroot/workspace/shopify/shipit-engine/app/assets/javascripts/task/sticky_element.js.coffee;TT: requiredo;;{: stubbedo;;{: linkso;;{: charsetI" utf-8;F: digest"%§}YŽp<öé[cG‹ý¬àGSaߔ肒’ê)­˜: lengthi‡:dependencies_digest"%Ý©èêÉdKÑ°Ò%‹ RYa³-à|ž(:idI"E5b81813b5f830ffd13c015072435448d1f096b263f20cc4b88f9d4dbf8851b55;F: mtimel+c‘U