diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-12-29 11:37:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-29 11:37:28 +0100 |
commit | c85948205409283fa7dec4ab1db9764acc0d3ce9 (patch) | |
tree | b4fbd692e4ce6cc93ccf417173242398adecf9c1 /server/sonar-web/src/main/js/components/workspace/views/viewer-header-view.js | |
parent | 5595c2f862cca1d07312c9219013f836e45a5f90 (diff) | |
download | sonarqube-c85948205409283fa7dec4ab1db9764acc0d3ce9.tar.gz sonarqube-c85948205409283fa7dec4ab1db9764acc0d3ce9.zip |
remove explicit _ and $ dependecies (#1487)
Diffstat (limited to 'server/sonar-web/src/main/js/components/workspace/views/viewer-header-view.js')
-rw-r--r-- | server/sonar-web/src/main/js/components/workspace/views/viewer-header-view.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/components/workspace/views/viewer-header-view.js b/server/sonar-web/src/main/js/components/workspace/views/viewer-header-view.js index 1f87fed1db4..49cb6a6d832 100644 --- a/server/sonar-web/src/main/js/components/workspace/views/viewer-header-view.js +++ b/server/sonar-web/src/main/js/components/workspace/views/viewer-header-view.js @@ -18,7 +18,6 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import $ from 'jquery'; -import _ from 'underscore'; import Marionette from 'backbone.marionette'; import Template from '../templates/workspace-viewer-header.hbs'; @@ -76,8 +75,8 @@ export default Marionette.ItemView.extend({ startResizing (e) { this.initialResizePosition = e.clientY; this.initialResizeHeight = $('.workspace-viewer-container').height(); - const processResizing = _.bind(this.processResizing, this); - const stopResizing = _.bind(this.stopResizing, this); + const processResizing = this.processResizing.bind(this); + const stopResizing = this.stopResizing.bind(this); $('body') .on('mousemove.workspace', processResizing) .on('mouseup.workspace', stopResizing); @@ -109,4 +108,3 @@ export default Marionette.ItemView.extend({ $('.workspace-viewer-container').height(this.initialResizeHeight); } }); - |