Skip to content

whisker can't deal with null values #10

@eightyfour

Description

@eightyfour

The whisker rendering fail if i try to do something like:

whisker.add(myNode, {
  text : null
 });
<div class="myNode">{{item.text}}</div>

It throws an exception: Uncaught TypeError: Cannot read property 'undefined' of null .

To fix this I do:

whisker.add(myNode, {
  text : null || ''
 });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions