Skip to content

Adding binding validation errors.

Compare
Choose a tag to compare
@gmac gmac released this 18 Jan 00:12
· 44 commits to master since this release

Epoxy now throws errors when it encounters a binding declaration that it does not recognize. This means you'll get an error if you misspell a handler declaration. Unknown declarations were previously ignored so that non-handler parameters (events, optionsDefault, etc) would pass through the binding process.

Non-handler binding declarations are now validated by the Epoxy.binding.allowedParams object. If you plan to use custom non-handler binding declarations, then you must specifically add the non-handler attribute names to the allowedParams object in order to avoid errors.