Skip to content
This repository has been archived by the owner on Mar 31, 2020. It is now read-only.

Commit

Permalink
jshint: Replace node with browserify
Browse files Browse the repository at this point in the history
 - remove unused variables.
  • Loading branch information
hackerwins committed Jun 14, 2015
1 parent 281743b commit d9e44e0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .jshintrc
Expand Up @@ -16,9 +16,8 @@
"maxstatements": 300,
"maxlen": 140,
"evil": true,
"browser": true,
"devel": true,
"node": true,
"browserify": true,
"worker": true,
"globals": {
"jest": true,
Expand Down
2 changes: 1 addition & 1 deletion js/components/Paragraph.js
Expand Up @@ -30,7 +30,7 @@ module.exports = React.createClass({
</div>;
},

_getCharWidth: function (ch, run) {
_getCharWidth: function (/*ch, run*/) {
// implements with view render
return 8;
},
Expand Down
2 changes: 0 additions & 2 deletions js/models/Editor.js
Expand Up @@ -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());
Expand Down

0 comments on commit d9e44e0

Please sign in to comment.