Commit 1a2d039b authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'jivanvl-replace-underscore-lodash-terminal' into 'master'

Replace underscore for lodash in terminal folder

Closes #196677

See merge request gitlab-org/gitlab!26304
parents 8ad0cc16 59d3173b
import _ from 'underscore'; import { throttle } from 'lodash';
import $ from 'jquery'; import $ from 'jquery';
import { Terminal } from 'xterm'; import { Terminal } from 'xterm';
import * as fit from 'xterm/lib/addons/fit/fit'; import * as fit from 'xterm/lib/addons/fit/fit';
...@@ -85,7 +85,7 @@ export default class GLTerminal { ...@@ -85,7 +85,7 @@ export default class GLTerminal {
addScrollListener(onScrollLimit) { addScrollListener(onScrollLimit) {
const viewport = this.container.querySelector('.xterm-viewport'); const viewport = this.container.querySelector('.xterm-viewport');
const listener = _.throttle(() => { const listener = throttle(() => {
onScrollLimit({ onScrollLimit({
canScrollUp: canScrollUp(viewport, SCROLL_MARGIN), canScrollUp: canScrollUp(viewport, SCROLL_MARGIN),
canScrollDown: canScrollDown(viewport, SCROLL_MARGIN), canScrollDown: canScrollDown(viewport, SCROLL_MARGIN),
......
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