remove from input for all render methods

This commit is contained in:
Michael Rawlings 2017-02-09 17:08:12 -08:00
parent 1d35a74dec
commit a821a09651

View File

@ -14,6 +14,7 @@ module.exports = function(target, renderer) {
var out = createOut(localData.$global);
out.global.template = this;
localData.$global = undefined;
if (callback) {
out.on('finish', function() {
@ -37,6 +38,7 @@ module.exports = function(target, renderer) {
out.sync();
out.global.template = this;
localData.$global = undefined;
render(localData, out);
return out.$__getResult();
@ -71,7 +73,7 @@ module.exports = function(target, renderer) {
if (data) {
finalData = data;
if ((globalData = data.$global)) {
finalData.$global = null;
finalData.$global = undefined;
}
} else {
finalData = {};