Skip to content

Commit

Permalink
Fix _.contains not found error (#1550)
Browse files Browse the repository at this point in the history
  • Loading branch information
longouyang authored and stephanwlee committed Dec 14, 2018
1 parent b89bd85 commit ce59aa9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@
linenoToNodeNameAndStackPos[lineno] =
linenoToNodeNameAndStackPos[lineno].filter(line => {
const nodeName = line[0];
return _.contains(watchedNodeNames, nodeName);
return _.includes(watchedNodeNames, nodeName);
});
}
},
Expand Down Expand Up @@ -623,7 +623,7 @@
const fullFilePath = stackFrame[0];
const lineno = Number(stackFrame[1]);
frameElement.textContent = fullFilePath + ': ' + String(lineno);
if (_.contains(this._fullFilePaths, fullFilePath)) {
if (_.includes(this._fullFilePaths, fullFilePath)) {
frameElement.classList.add('stack-frame-clickable');
// TODO(cais): Make class CSS work.
frameElement.style['color'] = 'blue';
Expand Down

0 comments on commit ce59aa9

Please sign in to comment.