From 34967ac354cc78840f9b4a40fe975810282965ad Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 30 Dec 2016 13:27:01 +0100 Subject: [PATCH] encapsulate rendering functions so we can pass in cryptpad-common --- www/poll/render.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/www/poll/render.js b/www/poll/render.js index b0b41369d..d70cd2067 100644 --- a/www/poll/render.js +++ b/www/poll/render.js @@ -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; });