Closed taion closed 9 years ago
Perhaps it would be better to change RESERVED_FUNCTIONS
to be Object.keys(BASE_SPECIFICATION)
, where BASE_SPECIFICATION
is defined as a constant, then special-case done
to be overridable.
:+1: looks good, thanks!
For #249
This also fixes a bug with
componentWillReceiveProps
where the base implementation would be overwritten by the configured one. I didn't explicitly add a test for this, but the existing test fails with thew new code without the change toRESERVED_FUNCTIONS
.