Fix scrollToTop/Buttom in preview

workaround
This commit is contained in:
Yukai Huang 2016-10-09 21:14:18 +08:00
parent 53b5cbb893
commit 8a254ea4f1

View file

@ -71,6 +71,7 @@ var clearMap = syncScroll.clearMap;
var syncScrollToEdit = syncScroll.syncScrollToEdit; var syncScrollToEdit = syncScroll.syncScrollToEdit;
var syncScrollToView = syncScroll.syncScrollToView; var syncScrollToView = syncScroll.syncScrollToView;
require('./pretty');
var extra = require('./extra'); var extra = require('./extra');
var md = extra.md; var md = extra.md;
var createtime = extra.createtime; var createtime = extra.createtime;
@ -91,7 +92,6 @@ var scrollToHash = extra.scrollToHash;
var history = require('./history'); var history = require('./history');
var writeHistory = history.writeHistory; var writeHistory = history.writeHistory;
var pretty = require('./pretty');
var renderer = require('./render'); var renderer = require('./render');
var preventXSS = renderer.preventXSS; var preventXSS = renderer.preventXSS;