added support for !array.length

This commit is contained in:
psychobunny
2014-01-30 14:33:03 -05:00
parent 0cca8e0bcf
commit 23c711947b

View File

@@ -358,6 +358,7 @@
template = replace(namespace + d, '', template);
} else if (data[d].constructor == Array) {
checkConditional(namespace + d + '.length', data[d].length);
checkConditional('!' + namespace + d + '.length', !data[d].length);
namespace += d + '.';