Make linter happy

This commit is contained in:
Paris Kasidiaris
2016-12-15 13:57:25 +02:00
parent 33f7d7649a
commit 20b6f20908
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import * as Clipboard from './Clipboard';
describe('evaluateCopiedTextProcessing', function () {
it('should strip trailing whitespaces and replace nbsps with spaces', function () {
var nonBreakingSpace = String.fromCharCode(160),
let nonBreakingSpace = String.fromCharCode(160),
copiedText = 'echo' + nonBreakingSpace + 'hello' + nonBreakingSpace,
processedText = Clipboard.prepareTextForClipboard(copiedText);
+4 -4
View File
@@ -108,11 +108,11 @@ export function rightClickHandler(ev: MouseEvent, term: ITerminal) {
if (s.rangeCount) {
let r = s.getRangeAt(0),
cr = r.getClientRects(),
i, rect;
cr = r.getClientRects();
for (let i = 0; i < cr.length; i++) {
let rect = cr[i];
for (i=0; i<cr.length; i++) {
rect = cr[i];
clickIsOnSelection = (
(x > rect.left) && (x < rect.right) &&
(y > rect.top) && (y < rect.bottom)