bump: 3.7.1

This commit is contained in:
qingwei.li 2017-05-19 08:39:09 +08:00
commit b948cb06d7
No known key found for this signature in database
GPG key ID: B6DDC2F7AE80B2F4
13 changed files with 26 additions and 18 deletions

View file

@ -666,7 +666,8 @@ function get (url, hasBar) {
var result = cache[url] = {
content: target.response,
opt: {
updatedAt: xhr.getResponseHeader('last-modified')
updatedAt: xhr.getResponseHeader('last-modified') ||
xhr.getResponseHeader('expires')
}
};
@ -3273,10 +3274,13 @@ function renderMixin (proto) {
proto._renderMain = function (text, opt) {
var this$1 = this;
if ( opt === void 0 ) opt = {};
callHook(this, 'beforeEach', text, function (result) {
var html = this$1.isHTML ? result : markdown(result);
html = formatUpdated(html, opt.updatedAt, this$1.config.formatUpdated);
if (opt.updatedAt) {
html = formatUpdated(html, opt.updatedAt, this$1.config.formatUpdated);
}
callHook(this$1, 'afterEach', html, function (text) { return renderMain.call(this$1, text); });
});