antonmedv/monkberry

support of null in conditions like {% if previousTime != null %}

dmitrya1979 opened this issue · 3 comments

Great library. It looks like null is not supported http://jsfiddle.net/zq3ez61h/ Can it be extended to support nulls?

Hello,
got the same problem with (both "row" and "index" are defined!):
{% if row[index] != undefined) %}
in the compiled output the undefined/null gets recognized as variable:
this.__cache__.index !== undefined && this.__cache__.row !== undefined && this.__cache__.undefined !== undefined

Currently undefined ignored on update in Monkberry. I'll add support for them in next Monkberry v5.

+1