Skip to content

Commit

Permalink
fix in checking nestTables with boolean value
Browse files Browse the repository at this point in the history
  • Loading branch information
sidorares committed Apr 28, 2014
1 parent dda4d7a commit ba3ac92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/compile_binary_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function compile(fields, options, config) {
if (typeof options.nestTables == 'string') {
tableName = srcEscape(fields[i].table);
lvalue = [' this[', srcEscape(fields[i].table + options.nestTables + fields[i].name), ']'].join('');
} else if (typeof options.nestTables == 'boolean') {
} else if (typeof options.nestTables === true) {
tableName = srcEscape(fields[i].table);
lvalue = [' this[', tableName, '][', fieldName, ']'].join('');
} else if (options.rowsAsArray) {
Expand Down
2 changes: 1 addition & 1 deletion lib/compile_text_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function compile(fields, options, config) {
if (typeof options.nestTables == 'string') {
tableName = srcEscape(fields[i].table);
lvalue = [' this[', srcEscape(fields[i].table + options.nestTables + fields[i].name), ']'].join('');
} else if (typeof options.nestTables == 'boolean') {
} else if (typeof options.nestTables === true) {
tableName = srcEscape(fields[i].table);
lvalue = [' this[', tableName, '][', fieldName, ']'].join('');
} else if (options.rowsAsArray) {
Expand Down

0 comments on commit ba3ac92

Please sign in to comment.