paperclip.BaseAttrBinding


This base class is incredibly useful if you're looking to extend the functionality of DOM elements. This comes handy especially when creating pollyfills for browsers that don't support certain DOM features, such as placeholder.

paperclip.nodeBinding(name, nodeBindingClass)

Registers a node name or attribute binding class

BaseAttrBinding(options)

override _onChange(text)

called whenever the attribute changes

node

the DOM node being bound to