From b39381f3248849612d2f6067ce9fbf14bb92652b Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Mon, 16 Mar 2015 12:48:11 +0200 Subject: 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. --- src/client/consts.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/client/consts.js') 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, -- cgit v1.3.1