From 1240b864ef2c0791a85268cf0101f779749ca1d7 Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 29 May 2017 17:25:06 +0200 Subject: [PATCH] fix misconfigured history --- www/code/main.js | 4 ++-- www/pad/main.js | 4 ++-- www/slide/main.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/www/code/main.js b/www/code/main.js index d82d73273..d4f414040 100644 --- a/www/code/main.js +++ b/www/code/main.js @@ -191,8 +191,8 @@ define([ /* add a history button */ var histConfig = { - onLocal: config.onLocal(), - onRemote: config.onRemote(), + onLocal: config.onLocal, + onRemote: config.onRemote, setHistory: setHistory, applyVal: function (val) { var remoteDoc = JSON.parse(val || '{}').content; diff --git a/www/pad/main.js b/www/pad/main.js index 635ea0087..f7d16a20b 100644 --- a/www/pad/main.js +++ b/www/pad/main.js @@ -500,8 +500,8 @@ define([ /* add a history button */ var histConfig = { - onLocal: realtimeOptions.onLocal(), - onRemote: realtimeOptions.onRemote(), + onLocal: realtimeOptions.onLocal, + onRemote: realtimeOptions.onRemote, setHistory: setHistory, applyVal: function (val) { applyHjson(val || '["BODY",{},[]]'); }, $toolbar: $bar diff --git a/www/slide/main.js b/www/slide/main.js index 6f04f96d0..f27fdbb2b 100644 --- a/www/slide/main.js +++ b/www/slide/main.js @@ -313,8 +313,8 @@ define([ /* add a history button */ var histConfig = { - onLocal: config.onLocal(), - onRemote: config.onRemote(), + onLocal: config.onLocal, + onRemote: config.onRemote, setHistory: setHistory, applyVal: function (val) { var remoteDoc = JSON.parse(val || '{}').content;