Browse Source

Invoke constructor with "new".

pull/229/head
Joachim Bauch 10 years ago
parent
commit
6cec7e88c4
  1. 2
      static/js/services/alertify.js

2
static/js/services/alertify.js

@ -108,7 +108,7 @@ define(["angular"], function(angular) { @@ -108,7 +108,7 @@ define(["angular"], function(angular) {
if (!conf ||
conf && !conf.type ||
conf && !conf.baseType) {
throw Error("Custom template not configured correctly.");
throw new Error("Custom template not configured correctly.");
}
var templateUrl = '/dialogs/' + conf.type + '.html';
if (conf.template) {

Loading…
Cancel
Save