Skip to content
Browse files

Minor fixes to the ‘type’ attribute

  • Loading branch information...
1 parent dd7ed49 commit f88da1de7c0c0379e4767fe0d298d84e7e0c36b4 @Baggz committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/engines/json/attributes/type.js
View
2 src/engines/json/attributes/type.js
@@ -31,7 +31,7 @@ var typeConstructor = function typeConstructor() {
var noError = attributeValue.some(function(type) {
- if (!hasProperty(types, attributeValue)) {
+ if (!hasProperty(types, type)) {
throw new Error('Type ‘' + attributeValue + '’ is not supported.');
}

0 comments on commit f88da1d

Please sign in to comment.
Something went wrong with that request. Please try again.