Broadcast calendar eventlist to other modules.

This commit is contained in:
Michael Teeuw
2016-10-14 15:23:03 +02:00
parent 8b004a549a
commit 5858e862d9
6 changed files with 109 additions and 80 deletions

View File

@@ -371,20 +371,6 @@ Module.create = function (name) {
return;
}
//Define the clone method for later use.
function cloneObject(obj) {
if (obj === null || typeof obj !== "object") {
return obj;
}
var temp = obj.constructor(); // give temp the original obj's constructor
for (var key in obj) {
temp[key] = cloneObject(obj[key]);
}
return temp;
}
var moduleDefinition = Module.definitions[name];
var clonedDefinition = cloneObject(moduleDefinition);