From 38b14777368c63f449a9362eb5124b9709916d7f Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Sun, 18 Sep 2016 16:51:19 +0800 Subject: Fix syncscroll.js and index.js have circular dependency cause Reference Errors --- public/js/index.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'public/js/index.js') diff --git a/public/js/index.js b/public/js/index.js index e8f2dbd1..8216b61a 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -924,6 +924,8 @@ $(window).on('error', function () { //setNeedRefresh(); }); +setupSyncAreas(ui.area.codemirrorScroll, ui.area.view, ui.area.markdown); + function autoSyncscroll() { if (editorHasFocus()) { syncScrollToView(); -- cgit v1.2.3