diff options
| author | Alon Levy <alon@pobox.com> | 2014-12-28 16:07:09 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-12-28 16:07:12 +0200 |
| commit | e82a59bb10bd25ed2bd73f32077baa2f1fc1b8d9 (patch) | |
| tree | cc4a2611f86648d900a1d1e0b0378e6808890439 /src | |
| parent | 8914099eb2cd7a31677b26fc485afdc2701a7df3 (diff) | |
Fixes #238 - tab works again
Broken during recent overzealous precondition addition
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/model/graph.js | 2 | ||||
| -rw-r--r-- | src/client/textanalysis.ui.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/client/model/graph.js b/src/client/model/graph.js index c3e5209b..64327f6a 100644 --- a/src/client/model/graph.js +++ b/src/client/model/graph.js @@ -593,7 +593,7 @@ function Graph() { this._editProperty = function(id, state, prop, value) { var n = find_node__by_id(id); - if (state != n.state){ + if (state !== null && state != n.state){ return false; } diff --git a/src/client/textanalysis.ui.js b/src/client/textanalysis.ui.js index 52b886be..a3b3becf 100644 --- a/src/client/textanalysis.ui.js +++ b/src/client/textanalysis.ui.js @@ -91,7 +91,7 @@ function changeType(arg) { nodetype, id; - if(!lastnode) { + if (!lastnode) { id = "new node"; } else { id = lastnode.id; |
