summaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
authorYukai Huang2016-10-14 00:02:55 +0800
committerYukai Huang2016-10-14 00:02:55 +0800
commite4515958cd4fc6eb7a39bc2b0294de07d7c7291a (patch)
tree11ea1ea5b3a1e4baf8aae1e5b75cd3aa09ff90ed /public/js
parentb5f42807b9ad94e362224a4247b656ad3a2d1792 (diff)
Fix require ordering
Diffstat (limited to 'public/js')
-rw-r--r--public/js/index.js12
-rw-r--r--public/js/public.js2
2 files changed, 7 insertions, 7 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 9fb7a28a..445a820b 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -28,12 +28,6 @@ var noteurl = common.noteurl;
var checkLoginStateChanged = common.checkLoginStateChanged;
-var syncScroll = require('./syncscroll');
-var setupSyncAreas = syncScroll.setupSyncAreas;
-var clearMap = syncScroll.clearMap;
-var syncScrollToEdit = syncScroll.syncScrollToEdit;
-var syncScrollToView = syncScroll.syncScrollToView;
-
require('./pretty');
var extra = require('./extra');
var md = extra.md;
@@ -54,6 +48,12 @@ var parseMeta = extra.parseMeta;
var exportToHTML = extra.exportToHTML;
var exportToRawHTML = extra.exportToRawHTML;
+var syncScroll = require('./syncscroll');
+var setupSyncAreas = syncScroll.setupSyncAreas;
+var clearMap = syncScroll.clearMap;
+var syncScrollToEdit = syncScroll.syncScrollToEdit;
+var syncScrollToView = syncScroll.syncScrollToView;
+
var historyModule = require('./history');
var writeHistory = historyModule.writeHistory;
var deleteServerHistory = historyModule.deleteServerHistory;
diff --git a/public/js/public.js b/public/js/public.js
index ac951804..af8c0924 100644
--- a/public/js/public.js
+++ b/public/js/public.js
@@ -20,8 +20,8 @@ require('list.js');
require('../vendor/md-toc');
require('randomcolor');
-require('./syncscroll');
require('./extra');
+require('./syncscroll');
require('./history');
require('./pretty');
require('./render');