bindonce doesn't work without "watched value" when used in combination with jade
timjnh opened this issue · 3 comments
timjnh commented
Jade will produce bindonce="bindonce" from a 'bindonce' attribute with no value associated with it. For example:
div(bindonce)
a(bo-title="model.title") foo
will result in:
<div bindonce="bindonce"><a bo-title="model.title">foo</a></div>
The results is that bindonce waits for a value to appear in the scope for "bindonce" which will never happen.
I know this isn't really a bindonce bug but it threw me off a bit at first. Thanks!
Pasvaz commented
what about div(bindonce="")
ognus commented
Hi, I had the same problem as @timjnh using div(bindonce)
in jade.
But div(bindonce="")
works fine.
timjnh commented
Thanks! Good suggestion guys.