Comparing version 0.0.16 to 0.0.17
@@ -40,3 +40,3 @@ var path = require('path'); | ||
// 将 layer 收集的 js/css 添加到 pagelet 中。 | ||
function beforePageletAnalyse(pagelet, locals) { | ||
function afterPageletRender(pagelet, locals) { | ||
var layer = locals._yog; | ||
@@ -208,3 +208,3 @@ | ||
.on('pagelet:render:before', beforePageletRender) | ||
.on('pagelet:analyse:before', beforePageletAnalyse); | ||
.on('pagelet:render:after', afterPageletRender); | ||
} | ||
@@ -211,0 +211,0 @@ |
{ | ||
"name": "yog-view", | ||
"version": "0.0.16", | ||
"version": "0.0.17", | ||
"description": "An express.js middleware for optimizing the order of js\\css output, and enabling render template in bigpipe mode.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
19741