mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
remove from input for all render methods
This commit is contained in:
parent
1d35a74dec
commit
a821a09651
@ -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 = {};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user