summaryrefslogtreecommitdiff
path: root/src/client/textanalysis.js
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-02-24 14:20:54 +0200
committerAlon Levy <alon@pobox.com>2015-02-24 14:20:54 +0200
commitbe3ebcd1efb44f736f9a8abc82d57d37b9a96efd (patch)
tree64753f1bd10e531a2199178f43f25136cf57fcf0 /src/client/textanalysis.js
parentf78815cf45398d397f94985257ccdaf60940769f (diff)
jshint: client/textanalysis: various lint fixes
Diffstat (limited to 'src/client/textanalysis.js')
-rw-r--r--src/client/textanalysis.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/client/textanalysis.js b/src/client/textanalysis.js
index 0f5c6cfd..d0a51314 100644
--- a/src/client/textanalysis.js
+++ b/src/client/textanalysis.js
@@ -20,7 +20,7 @@ var sugg_name = {},
suggestions_bus.push([]);
var ANALYSIS_NODE_START = 'ANALYSIS_NODE_START';
-var ANALYSIS_NODE = 'ANALYSIS_NODE'
+var ANALYSIS_NODE = 'ANALYSIS_NODE';
var ANALYSIS_LINK = 'ANALYSIS_LINK';
var NEW_NODE_NAME = consts.NEW_NODE_NAME;
@@ -161,10 +161,10 @@ function lowerCaseHash() {
var hash = {};
hash.set = function (name, value) {
hash[name.toLowerCase()] = value;
- }
+ };
hash.get = function (name) {
return hash[name.toLowerCase()];
- }
+ };
return hash;
}
@@ -222,8 +222,8 @@ var textAnalyser = function (spec) {
function __addNode(name) {
var type;
- if (name == NEW_NODE_NAME) {
- type = selectedType()
+ if (name === NEW_NODE_NAME) {
+ type = selectedType();
} else {
type = node_name_to_type[name] || nodetypes[0];
}
@@ -492,7 +492,7 @@ var textAnalyser = function (spec) {
if (nodes.length <= 0) {
return null;
}
- if (nodes.length == 1) {
+ if (nodes.length === 1) {
return edit_graph.find_node__by_name(nodes[0].name);
}
// go forward to find cursor location in tokens
@@ -514,7 +514,7 @@ var textAnalyser = function (spec) {
return node;
}
- _get_lastnode = finalize || tokens.length == 0 ? function () { return null }
+ _get_lastnode = finalize || tokens.length === 0 ? function () { return null; }
: lookup_node_in_bounds;
return ret;