quirkey/sammy — Issue #112: Bad check for empty object in contextMatchesOptions
Author: ydaniv
Created: 2011-10-10 13:32:33+00:00
State: open

On line 1101:
```javascript
// empty options always match
var options = match_options;
if (typeof options === 'undefined' || options == {}) {
return true;
}
```
In the if statement there's a check if the options object is equal an object literal, which always produces false.
There probably should be a check if options is an empty object and the above is obviously not the way to check that.

Thanks!
~Y