summaryrefslogtreecommitdiff
path: root/src/ws
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2020-06-16 16:19:11 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2020-06-16 16:19:11 +0200
commit1edbb7daaf5fc3b40eec0977eebbe371fea5f244 (patch)
tree65b5712de8d84b6209944d0e3c7bd6ab99f76509 /src/ws
parentdd55626317d191b6528fe1b8f1d8d267157df748 (diff)
Fix missing title resulting in 'undefined' text in editor.
Diffstat (limited to 'src/ws')
-rw-r--r--src/ws/node.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ws/node.js b/src/ws/node.js
index 4c63496..2dc5608 100644
--- a/src/ws/node.js
+++ b/src/ws/node.js
@@ -351,7 +351,11 @@ Node.prototype.setAttribute = function(name, value)
Node.prototype.getTitle = function()
{
- return this.attributes["title"];
+ if(this.attributes["title"])
+ {
+ return this.attributes["title"];
+ }
+ return "";
};
Node.prototype.getDescription = function()