Comparing version 1.3.14 to 1.3.15
@@ -414,6 +414,5 @@ /* | ||
} | ||
var nextStripVarId = template.getAttribute('nextStripVarId'); | ||
if (nextStripVarId == null) { | ||
nextStripVarId = template.setAttribute('nextStripVarId', 0); | ||
} | ||
var nextStripVarId = template.data.nextStripVarId || (template.data.nextStripVarId = 0); | ||
template.data.nextStripVarId++; | ||
var varName = '__strip' + nextStripVarId++; | ||
@@ -420,0 +419,0 @@ template.statement('var ' + varName + ' = !(' + this.stripExpression + ');'); |
@@ -245,3 +245,3 @@ /* | ||
this.templateName = null; | ||
this.attributes = {}; | ||
this.attributes = this.data = {}; | ||
this.concatWrites = this.options.concatWrites !== false; | ||
@@ -248,0 +248,0 @@ this.writer = new CodeWriter(this.concatWrites); |
@@ -60,3 +60,3 @@ { | ||
}, | ||
"version": "1.3.14" | ||
"version": "1.3.15" | ||
} |
@@ -146,2 +146,10 @@ /* | ||
[ | ||
'body-only-if', function(attr, node) { | ||
if (!node.setStripExpression) { | ||
node.addError('The c-strip directive is not allowed for target node'); | ||
} | ||
node.setStripExpression(attr); | ||
} | ||
], | ||
[ | ||
'c-input', function(attr, node) { | ||
@@ -148,0 +156,0 @@ this.inputAttr = attr; |
@@ -353,2 +353,8 @@ 'use strict'; | ||
}); | ||
it.only("should handle 'body-only-if' correctly", function(done) { | ||
testRender("test-project/html-templates/body-only-if.marko", { | ||
url: '/foo' | ||
}, done); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
438143
368
8095