velocityjs
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -0,1 +1,5 @@ | ||
## 1.1.1 2018-06-14 | ||
- fix: Allow own keySet, entrySet, put and size methods on objects by @lightsofapollo [!106](https://github.com/shepherdwind/velocity.js/pull/106) | ||
## 1.1.0 2018-06-12 | ||
@@ -2,0 +6,0 @@ |
{ | ||
"name": "velocityjs", | ||
"description": "Velocity Template Language(VTL) for JavaScript", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
@@ -252,7 +252,7 @@ module.exports = function(Velocity, utils) { | ||
return getter(baseRef, id.slice(2)); | ||
} else if (id === 'keySet') { | ||
} else if (id === 'keySet' && !baseRef[id]) { | ||
return utils.keys(baseRef); | ||
} else if (id === 'entrySet') { | ||
} else if (id === 'entrySet' && !baseRef[id]) { | ||
@@ -266,6 +266,6 @@ ret = []; | ||
} else if (id === 'size') { | ||
} else if (id === 'size' && !baseRef[id]) { | ||
return getSize(baseRef); | ||
} else if (id === 'put') { | ||
} else if (id === 'put' && !baseRef[id]) { | ||
return baseRef[this.getLiteral(property.args[0])] = this.getLiteral(property.args[1]); | ||
@@ -272,0 +272,0 @@ } else { |
386448