// Generated by CoffeeScript 1.6.2 var ScrollHandler, scroll_handler; ScrollHandler = (function() { function ScrollHandler(options) { this.top = options.top; this.bottom = options.bottom; } ScrollHandler.prototype.bind_events = function() { this._bind_top(); return this._bind_bottom(); }; ScrollHandler.prototype._bind_top = function() { var _this = this; return this.top.addEventListener("scroll", function(event) { return _this.bottom.scrollLeft = event.target.scrollLeft; }); }; ScrollHandler.prototype._bind_bottom = function() { var _this = this; return this.bottom.addEventListener("scroll", function(event) { return _this.top.scrollLeft = event.target.scrollLeft; }); }; return ScrollHandler; })(); scroll_handler = new ScrollHandler({ top: document.getElementById("js-top-scroll"), bottom: document.getElementById("js-bottom-scroll") }); scroll_handler.bind_events();