From d9e44e0841b7d84cb267c73564bd6a14c8c34bf9 Mon Sep 17 00:00:00 2001 From: hackerwins Date: Sun, 14 Jun 2015 11:18:53 +0900 Subject: [PATCH] jshint: Replace node with browserify - remove unused variables. --- .jshintrc | 3 +-- js/components/Paragraph.js | 2 +- js/models/Editor.js | 2 -- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.jshintrc b/.jshintrc index 8e46d0a..91282d4 100644 --- a/.jshintrc +++ b/.jshintrc @@ -16,9 +16,8 @@ "maxstatements": 300, "maxlen": 140, "evil": true, - "browser": true, "devel": true, - "node": true, + "browserify": true, "worker": true, "globals": { "jest": true, diff --git a/js/components/Paragraph.js b/js/components/Paragraph.js index 8f8087d..2f5748e 100644 --- a/js/components/Paragraph.js +++ b/js/components/Paragraph.js @@ -30,7 +30,7 @@ module.exports = React.createClass({ ; }, - _getCharWidth: function (ch, run) { + _getCharWidth: function (/*ch, run*/) { // implements with view render return 8; }, diff --git a/js/models/Editor.js b/js/models/Editor.js index 6116ba8..ecb228a 100644 --- a/js/models/Editor.js +++ b/js/models/Editor.js @@ -100,10 +100,8 @@ _.extend(Editor.prototype, { insertParagraph: function () { var position = this._selection.getStartPosition(); - var offset = position.offset; var doc = position.stack[0]; var para = position.stack[1]; - var run = position.stack[2]; // TODO split text doc.body.splice(doc.body.indexOf(para) + 1, 0, this._document.createParagraph());