Agreed we need some documentation on this. Opened an issue:
https://github.com/Polymer/docs/issues/571

FWIW, Addy put together as nice list of filters that add themselves to
PolymerExpression: https://github.com/addyosmani/polymer-filters




On Fri, Jul 25, 2014 at 1:36 AM, Martin Kleinschrodt <
[email protected]> wrote:

> What's the preferred way of registering 'global' filters alongside the
> 'built-in' ones? I understand that filters can be added by simply adding
> them to the prototype of the PolymerExpressions object but that seems a
> little messy. Are there any plans to add something like a
> Polymer.registerFilter() function? Also, some documentation on this would
> be nice.
> http://www.polymer-project.org/docs/polymer/expressions.html#custom-filters
> only describes defining custom filters by adding them to the element
> prototype which in many cases is not the optimal solution.
>
> Follow Polymer on Google+: plus.google.com/107187849809354688692
> ---
> You received this message because you are subscribed to the Google Groups
> "Polymer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/polymer-dev/69a0df72-cba9-490f-9c43-97aa005e1b6d%40googlegroups.com
> <https://groups.google.com/d/msgid/polymer-dev/69a0df72-cba9-490f-9c43-97aa005e1b6d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/CACGqRCDA8s5UA5jfV_1t9TJGjw86-P6iN_s5VR8%3D1gE3zV%2BJGg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to