- },
- resetDocument: function(document, reason) {
- var modules = [];
- if (reason === 'revert') {
- modules = ['documentCanvas', 'metadataEditor', 'sourceEditor'];
- }
- modules.forEach(function(moduleName) {
- sandbox.getModule(moduleName).setDocument(document);
- });