encapsulate rendering functions so we can pass in cryptpad-common

This commit is contained in:
ansuz
2016-12-30 13:27:01 +01:00
parent 66b8c93205
commit 34967ac354

View File

@@ -1,9 +1,9 @@
define([
'/common/cryptpad-common.js',
//'/common/cryptpad-common.js',
'/bower_components/hyperjson/hyperjson.js',
'/bower_components/textpatcher/TextPatcher.js',
'/bower_components/diff-dom/diffDOM.js',
], function (Cryptpad, Hyperjson, TextPatcher) {
], function (Hyperjson, TextPatcher) {
var DiffDOM = window.diffDOM;
var Example = {
@@ -29,6 +29,8 @@ by maintaining indexes in rowsOrder and colsOrder
}
};
var Renderer = function (Cryptpad) {
var Render = {
Example: Example
};
@@ -443,4 +445,7 @@ by maintaining indexes in rowsOrder and colsOrder
};
return Render;
};
return Renderer;
});