+Editor.prototype.registerScriptlet = function(scriptlet_id, scriptlet_func)
+{
+ // I briefly assume, that it's verified not to break the world on SS
+ if (!this[scriptlet_id])
+ this[scriptlet_id] = scriptlet_func;
+}
+
+Editor.prototype.callScriptlet = function(scriptlet_id, panel, params) {
+ var func = this[scriptlet_id]
+ if(!func)
+ throw 'No scriptlet named "' + scriptlet_id + '" found.';