1
0
mirror of /repos/Prototyper.git synced 2025-12-30 06:31:32 +01:00
Prototyper/lib/handlers.js
2015-07-03 18:10:15 +02:00

27 lines
666 B
JavaScript

'use strict';
module.exports = function (dataInstance, previewInstance, importerInstance) {
function getAttribute(options, callback) {
return dataInstance.getAttribute(options, callback);
}
function getContent(options, callback) {
return dataInstance.getContent(options, callback);
}
function getPreviewHTML(html, options, callback) {
return previewInstance.getPreviewHTML(html, options, callback);
}
function importer(doc, options, callback) {
return importerInstance.importer(doc, options, callback);
}
return {
getAttribute: getAttribute,
getContent: getContent,
getPreviewHTML: getPreviewHTML,
importer: importer
};
};