Better condition fix

This commit is contained in:
Luke Young 2014-05-14 13:46:29 -05:00
parent 5f349d338d
commit 61b7a0c20a

View File

@ -1218,7 +1218,7 @@ function read(buffer, cursor, fieldInfo, rootNodes) {
function write(value, buffer, offset, fieldInfo, rootNode) { function write(value, buffer, offset, fieldInfo, rootNode) {
if (fieldInfo.condition && !fieldInfo.condition(rootNode)) { if (fieldInfo.condition && !fieldInfo.condition(rootNode)) {
return null; return offset;
} }
var type = types[fieldInfo.type]; var type = types[fieldInfo.type];
if (!type) { if (!type) {