diff options
author | Wu Cheng-Han | 2016-09-18 16:51:19 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2016-09-18 16:51:19 +0800 |
commit | 38b14777368c63f449a9362eb5124b9709916d7f (patch) | |
tree | 83c2b7cd58abae4ea1e5e76af24cffa38c883f6d /public/js/index.js | |
parent | b7200d7910fa504e0e5e05cd390cca78a7338605 (diff) |
Fix syncscroll.js and index.js have circular dependency cause Reference Errors
Diffstat (limited to 'public/js/index.js')
-rw-r--r-- | public/js/index.js | 2 |
1 files changed, 2 insertions, 0 deletions
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(); |