Skip to content

Commit

Permalink
Included checkboxes and radios to the new boolean code generation
Browse files Browse the repository at this point in the history
  • Loading branch information
InDIOS committed Oct 9, 2018
1 parent 0b5c6d3 commit 28b7027
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/generators/bindings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ export function genBind(variable: string, attr: string, expression: string, area
} else {
areas.hydrate.push(`${variable}.value = _$toStr(${bindFunc}[1]);`);
}
} else if (attr === 'checked' && /input/.test(variable) && /checkbox|radio/.test(type)) {
areas.hydrate.push(`${variable}.checked = !!${bindFunc}[1];`);
} else if (isBooleanAttr(attr)) {
areas.update.push(`_$bba(${variable}, ${bindFunc});`);
areas.hydrate.push(`_$bba(${variable}, ${bindFunc});`);
Expand Down

0 comments on commit 28b7027

Please sign in to comment.