I am having trouble with getting a formatter to work properly in rivets.
<span class='person-gender' rv-text='person:gender | gender'></span>
When I check the formatters declared on rivets with rivets.formatters, I see my formatter, but it is never applied.
Within Binding.prototype.formattedValue:398, I see:
else if (formatter instanceof Function) {
value = formatter.apply(...)
}
But my formatter is not an instance of Function despite it being defined like so:
rivets.formatters.gender = function (value) {
return value.charAt(0)
}
I am not sure why this formatter is not being applied. I declared it in the same place where I attached my backbone adapter. Any thoughts?