Made pad2 server more generic and easy to implement

This commit is contained in:
Caleb James DeLisle
2017-08-17 15:41:04 +02:00
parent e04c0b89a1
commit ad9f2ff223
6 changed files with 46 additions and 25 deletions

View File

@@ -72,7 +72,7 @@ define([], function () {
},
getMetadata: function () {
checkUpdate();
return metadataObj;
return Object.freeze(JSON.parse(JSON.stringify(metadataObj)));
},
onChange: function (f) { changeHandlers.push(f); }
});