From e4515958cd4fc6eb7a39bc2b0294de07d7c7291a Mon Sep 17 00:00:00 2001 From: Yukai Huang Date: Fri, 14 Oct 2016 00:02:55 +0800 Subject: Fix require ordering --- public/js/index.js | 12 ++++++------ public/js/public.js | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'public') 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'); -- cgit v1.2.3