Merge pull request #205 from Yukaii/webpack-fix-cont

Fix minor bugs (cont.)
This commit is contained in:
Max Wu 2016-10-14 00:14:25 +08:00 committed by GitHub
commit adb3666d13
3 changed files with 9 additions and 11 deletions

View file

@ -48,8 +48,8 @@ function updateLastChangeUser() {
} }
} }
var owner = null; window.owner = null;
var ownerprofile = null; window.ownerprofile = null;
function updateOwner() { function updateOwner() {
if (ownerui) { if (ownerui) {
if (owner && ownerprofile && owner !== lastchangeuser) { if (owner && ownerprofile && owner !== lastchangeuser) {
@ -1080,7 +1080,6 @@ module.exports = {
generateToc: generateToc, generateToc: generateToc,
smoothHashScroll: smoothHashScroll, smoothHashScroll: smoothHashScroll,
scrollToHash: scrollToHash, scrollToHash: scrollToHash,
owner: owner,
updateLastChangeUser: updateLastChangeUser, updateLastChangeUser: updateLastChangeUser,
updateOwner: updateOwner, updateOwner: updateOwner,
parseMeta: parseMeta, parseMeta: parseMeta,

View file

@ -28,12 +28,6 @@ var noteurl = common.noteurl;
var checkLoginStateChanged = common.checkLoginStateChanged; 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'); require('./pretty');
var extra = require('./extra'); var extra = require('./extra');
var md = extra.md; var md = extra.md;
@ -48,13 +42,18 @@ var renderTOC = extra.renderTOC;
var renderTitle = extra.renderTitle; var renderTitle = extra.renderTitle;
var renderFilename = extra.renderFilename; var renderFilename = extra.renderFilename;
var scrollToHash = extra.scrollToHash; var scrollToHash = extra.scrollToHash;
var owner = extra.owner;
var updateLastChangeUser = extra.updateLastChangeUser; var updateLastChangeUser = extra.updateLastChangeUser;
var updateOwner = extra.updateOwner; var updateOwner = extra.updateOwner;
var parseMeta = extra.parseMeta; var parseMeta = extra.parseMeta;
var exportToHTML = extra.exportToHTML; var exportToHTML = extra.exportToHTML;
var exportToRawHTML = extra.exportToRawHTML; 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 historyModule = require('./history');
var writeHistory = historyModule.writeHistory; var writeHistory = historyModule.writeHistory;
var deleteServerHistory = historyModule.deleteServerHistory; var deleteServerHistory = historyModule.deleteServerHistory;

View file

@ -20,8 +20,8 @@ require('list.js');
require('../vendor/md-toc'); require('../vendor/md-toc');
require('randomcolor'); require('randomcolor');
require('./syncscroll');
require('./extra'); require('./extra');
require('./syncscroll');
require('./history'); require('./history');
require('./pretty'); require('./pretty');
require('./render'); require('./render');