You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, for example, assertEqual this ../../currentPage when currentPage is 1 and this is 1, returns false.
But when just insert it as a text, e.g.
<adata-current="{{../../currentPage}}"></a>
it is shown as expected - as a normal integer number.
One more inportrant thing - I am using RoR with assets precompilation. So in development mode, where assets precompilation is disable - the issue doesn't present. But after precompilation I have it...
Any ideas?
The text was updated successfully, but these errors were encountered:
Ok. After some inspection, it looks like that the problem in "each" helper. It returns instance of Number instead of returning regular integer value.
Also, I temporary solved a pb writing new helper to compare numbers, and original problem remains unresolved...
I'm not sure what you mean by instanceof Number can you create a jsfiddle demonstrating your issue? http://jsfiddle.net/9D88g/11/ can be used as a template.
Handlebars 1.3.0
I have simple helper:
And the template:
The line of interest is:
For some reason, instead of normal integer value this statement ../../currentPage shows next(when console.log it):
So, for example,
assertEqual this ../../currentPage
when currentPage is 1 and this is 1, returns false.But when just insert it as a text, e.g.
it is shown as expected - as a normal integer number.
One more inportrant thing - I am using RoR with assets precompilation. So in development mode, where assets precompilation is disable - the issue doesn't present. But after precompilation I have it...
Any ideas?
The text was updated successfully, but these errors were encountered: