Commit 91e2f17e authored by Gero Müller's avatar Gero Müller
Browse files

handle faulty extensions

parent 0a86d1a6
......@@ -115,6 +115,9 @@ define(["jquery", "emitter", "vispa/module", "vispa/ui"], function($, Emitter, M
registerExtension: function(extension) {
var self = this;
if (extension === undefined)
return null;
if (!(extension instanceof Extension)) {
if (extension._extends(Extension))
extension = new extension();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment