diff --git a/lib/select.js b/lib/select.js index e034eb4..1077959 100644 --- a/lib/select.js +++ b/lib/select.js @@ -231,7 +231,7 @@ function hasAllAttributes( obj, attributes, not ) { attributeValue = attributes[attribute]; if ( !obj.hasOwnProperty( attribute ) ) { - throw new Error( 'The attribute ' + attribute + ' does not exist on a ' + typeof ( obj ) ); + return false; } var isSame = compare( attributeValue, obj[attribute] );