View Filter: toSentence

17 views
Skip to first unread message

Andrew Zielinski

unread,
Jul 25, 2014, 8:59:51 PM7/25/14
to batm...@googlegroups.com
Hi,

I'm hoping that there is a simple solution to my problem. Reading all the documentation I'm under the impression that the snippet below should work out of the box but I'm getting the following error message:

Uncaught DevelopmentError: Unrecognized filter 'toSentence' in key "['one','two'] | toSentence"!  


<span data-bind="['one','two'] | toSentence"></span>

I can see that toSentence is defined within Batman.helpers. As a work around I've created my own filter which references Batman.helpers.toSentence but this ugly. I'm sure it should just work.

Any help appreciated.


Robert Mosolgo

unread,
Jul 25, 2014, 9:13:03 PM7/25/14
to batm...@googlegroups.com
Hi Andrew, 

That helper was added in 0.16, but it wasn't added as a filter at that time. It was added as a filter in this PR and will be included in v0.17

Sorry -- it looks like the docs got ahead of the latest release! (If you want to, you can download the lastest master from http://batmanjs.org/download.html)

robert


--
You received this message because you are subscribed to the Google Groups "batman.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to batmanjs+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andrew Zielinski

unread,
Jul 25, 2014, 11:57:07 PM7/25/14
to batm...@googlegroups.com, rdmo...@gmail.com
Thanks Robert.
Reply all
Reply to author
Forward
0 new messages