Skip to content

Commit

Permalink
Merge pull request #47 from Hcu/master
Browse files Browse the repository at this point in the history
Registering custom inputtypes : Checking that the passed types parameter is actually of type object did not check the actual parameter passed in…
  • Loading branch information
andrewhathaway committed Nov 7, 2015
2 parents 5b0620d + 196609e commit 7fd73ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/inputTypes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ inputTypes.addInputType = (name, instance) => {
* @param object types InputTypes to add. string => Component
*/
inputTypes.addInputTypes = (types) => {
if (typeof messages !== 'object') {
if (typeof types !== 'object') {
throw new Error('Winterfell: First parameter of addInputTypes '
+ 'must be of type object');
}
Expand All @@ -49,4 +49,4 @@ inputTypes.addInputTypes = (types) => {
}
};

module.exports = inputTypes;
module.exports = inputTypes;

0 comments on commit 7fd73ce

Please sign in to comment.