diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-05-08 21:55:52 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-05-09 01:39:51 +0300 |
commit | 306be281ccfccdb1003c8ef4d90e800c6b58be18 (patch) | |
tree | 0593bc935fa8a33439470396370503ccf83bd6aa /app/assets/javascripts | |
parent | 09e2c1afb1782512de4bf4a5e90275300a3bf08d (diff) |
remove bind polyfill from files_comment_button.js
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/files_comment_button.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/assets/javascripts/files_comment_button.js b/app/assets/javascripts/files_comment_button.js index 59d6508fc02..534e651b030 100644 --- a/app/assets/javascripts/files_comment_button.js +++ b/app/assets/javascripts/files_comment_button.js @@ -3,7 +3,6 @@ /* global notes */ let $commentButtonTemplate; -var bind = function(fn, me) { return function() { return fn.apply(me, arguments); }; }; window.FilesCommentButton = (function() { var COMMENT_BUTTON_CLASS, EMPTY_CELL_CLASS, LINE_COLUMN_CLASSES, LINE_CONTENT_CLASS, LINE_HOLDER_CLASS, LINE_NUMBER_CLASS, OLD_LINE_CLASS, TEXT_FILE_SELECTOR, UNFOLDABLE_LINE_CLASS; @@ -27,8 +26,8 @@ window.FilesCommentButton = (function() { TEXT_FILE_SELECTOR = '.text-file'; function FilesCommentButton(filesContainerElement) { - this.render = bind(this.render, this); - this.hideButton = bind(this.hideButton, this); + this.render = this.render.bind(this); + this.hideButton = this.hideButton.bind(this); this.isParallelView = notes.isParallelView(); filesContainerElement.on('mouseover', LINE_COLUMN_CLASSES, this.render) .on('mouseleave', LINE_COLUMN_CLASSES, this.hideButton); |