Convert history.js to es6

This commit is contained in:
Yukai Huang 2017-01-05 20:56:16 +08:00
parent 71aece7429
commit fce08cc164
3 changed files with 112 additions and 132 deletions

View file

@ -59,12 +59,13 @@ import {
syncScrollToView
} from './syncscroll';
var historyModule = require('./history');
var writeHistory = historyModule.writeHistory;
var deleteServerHistory = historyModule.deleteServerHistory;
var getHistory = historyModule.getHistory;
var saveHistory = historyModule.saveHistory;
var removeHistory = historyModule.removeHistory;
import {
writeHistory,
deleteServerHistory,
getHistory,
saveHistory,
removeHistory
} from './history';
var renderer = require('./render');
var preventXSS = renderer.preventXSS;