summaryrefslogtreecommitdiffstats
path: root/etherpad/src/etherpad/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'etherpad/src/etherpad/utils.js')
-rw-r--r--etherpad/src/etherpad/utils.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/etherpad/src/etherpad/utils.js b/etherpad/src/etherpad/utils.js
index 83a1ec4..57ca5de 100644
--- a/etherpad/src/etherpad/utils.js
+++ b/etherpad/src/etherpad/utils.js
@@ -79,8 +79,10 @@ Template.prototype.define = function(name, fn) {
Template.prototype.use = function (name, fn, arg) {
if (this._defines[name] != undefined)
return this._defines[name](arg);
- else
+ else if (fn != undefined)
return fn(arg);
+ else
+ return '';
}
Template.prototype.inherit = function (template) {