summaryrefslogtreecommitdiff
path: root/src/client/consts.js
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-03-16 12:48:11 +0200
committerAlon Levy <alon@pobox.com>2015-03-16 12:59:38 +0200
commitb39381f3248849612d2f6067ce9fbf14bb92652b (patch)
tree8877fb18928d61d9ab7546640eab36a9386eedc9 /src/client/consts.js
parent4a4e87691cd1deb50c7570c3984f60f91272e587 (diff)
client: use 'untitled' as empty link fixes #381
Sanitizes any link attribute change. Topo diff in next patch since I might want to reverse it - current interface doesn't allow introducing null link names on creation.
Diffstat (limited to 'src/client/consts.js')
-rw-r--r--src/client/consts.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/consts.js b/src/client/consts.js
index b20ce9ce..83bf5728 100644
--- a/src/client/consts.js
+++ b/src/client/consts.js
@@ -19,6 +19,9 @@ define(function() {
description: description,
NEW_NODE_NAME: 'new node',
+ // Our database cannot encode zero length names, so we never (unless, bug) send those
+ EMPTY_LINK_NAME: 'untitled',
+
// Virtual Keycodes i.e. event.keyCode / event.key
// https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#keys-keyvalues
VK_UP: 38,