Commit a333f202 authored by Mike Greiling's avatar Mike Greiling

remove bind polyfill from line_highlighter.js

parent 98b5dd9d
...@@ -31,8 +31,6 @@ require('vendor/jquery.scrollTo'); ...@@ -31,8 +31,6 @@ require('vendor/jquery.scrollTo');
// </div> // </div>
// //
(function() { (function() {
var bind = function(fn, me) { return function() { return fn.apply(me, arguments); }; };
this.LineHighlighter = (function() { this.LineHighlighter = (function() {
// CSS class applied to highlighted lines // CSS class applied to highlighted lines
LineHighlighter.prototype.highlightClass = 'hll'; LineHighlighter.prototype.highlightClass = 'hll';
...@@ -47,9 +45,9 @@ require('vendor/jquery.scrollTo'); ...@@ -47,9 +45,9 @@ require('vendor/jquery.scrollTo');
// hash - String URL hash for dependency injection in tests // hash - String URL hash for dependency injection in tests
hash = location.hash; hash = location.hash;
} }
this.setHash = bind(this.setHash, this); this.setHash = this.setHash.bind(this);
this.highlightLine = bind(this.highlightLine, this); this.highlightLine = this.highlightLine.bind(this);
this.clickHandler = bind(this.clickHandler, this); this.clickHandler = this.clickHandler.bind(this);
this.highlightHash = this.highlightHash.bind(this); this.highlightHash = this.highlightHash.bind(this);
this._hash = hash; this._hash = hash;
this.bindEvents(); this.bindEvents();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment