velocityjs
Advanced tools
Comparing version 0.8.4 to 0.8.5
@@ -0,1 +1,5 @@ | ||
## 0.8.5 2016-07-16 | ||
- fix bug #foreach with nest empty foreach [!70](https://github.com/shepherdwind/velocity.js/pull/70) | ||
## 0.8.4 2016-07-04 | ||
@@ -2,0 +6,0 @@ |
{ | ||
"name": "velocityjs", | ||
"description": "Velocity Template Language(VTL) for JavaScript", | ||
"version": "0.8.4", | ||
"version": "0.8.5", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "velocity template" |
@@ -15,5 +15,5 @@ Velocity - Template Engine | ||
[travis-image]: https://img.shields.io/travis/shepherdwind/velocity.js.svg?style=flat-square | ||
[travis-url]: https://travis-ci.org/react-component/upload | ||
[travis-url]: https://travis-ci.org/shepherdwind/velocity.js | ||
[coveralls-image]: https://img.shields.io/coveralls/shepherdwind/velocity.js.svg?style=flat-square | ||
[coveralls-url]: https://coveralls.io/r/react-component/upload?branch=master | ||
[coveralls-url]: https://coveralls.io/r/shepherdwind/velocity.js?branch=master | ||
@@ -23,3 +23,3 @@ | ||
[中文版文档](./README.cn.md) | ||
[中文版文档](./README-cn.md) | ||
@@ -26,0 +26,0 @@ ##Features |
@@ -222,7 +222,11 @@ 'use strict'; | ||
this._state.break = false; | ||
// 删除临时变量 | ||
this.local[contextId] = {}; | ||
this.conditions.shift(); | ||
this.condition = this.conditions[0] || ''; | ||
// if foreach items be an empty array, then this code will shift current | ||
// conditions, but not this._render call, so this will shift parent context | ||
if (_from && _from.length) { | ||
this._state.break = false; | ||
// empty current local context object | ||
this.local[contextId] = {}; | ||
this.conditions.shift(); | ||
this.condition = this.conditions[0] || ''; | ||
} | ||
@@ -229,0 +233,0 @@ return ret; |
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
400445
2616