Workaround for circular require

This commit is contained in:
Yukai Huang 2016-10-09 21:08:33 +08:00
parent d0997ed0c1
commit 5355da0960

View file

@ -1,4 +1,4 @@
var extra = require('./extra')
var extra = require('./extra');
var md = extra.md;
var finishView = extra.finishView;
var autoLinkify = extra.autoLinkify;
@ -124,6 +124,10 @@ function scrollToBottom() {
}, 100, "linear");
}
window.scrollToTop = scrollToTop;
window.scrollToBottom = scrollToBottom;
module.exports = {
scrollToBottom: scrollToBottom
scrollToBottom: scrollToBottom,
scrollToTop: scrollToTop
}