[.selector was deprecated in jQuery 1.7](http://api.jquery.com/selector/). Instead you could use
<code>var inDropdown = $(evt.target).parents().is(self.dropdown)</code>