encapsulate rendering functions so we can pass in cryptpad-common

pull/1/head
ansuz 8 years ago
parent 66b8c93205
commit 34967ac354

@ -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;
});

Loading…
Cancel
Save