Throw error when referencing an unregistered mixin #1796

Merged
merged 1 commit into from May 17, 2016

Projects

None yet

2 participants

@juodumas
Contributor

Before this, this.mixin('nonexistent-mixin') threw Uncaught TypeError: Cannot convert undefined or null to object. Now it will throw Uncaught Error: Unknown mixin: nonexistent-mixin.

@juodumas juodumas Throw error when referencing an unregistered mixin
Before this, `this.mixin('nonexistent-mixin')` threw `Uncaught TypeError: Cannot convert undefined or null to object`. Now it will throw `Uncaught Error: Unknown mixin: nonexistent-mixin`.
8a22140
@GianlucaGuarini GianlucaGuarini merged commit cdfe361 into riot:dev May 17, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@GianlucaGuarini
Member

thanks @juodumas this is a great patch

@juodumas juodumas deleted the unknown repository branch May 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment