atom/space-pen — pull request #29 by nddrylliog (2014-03-06 14:42:25+00:00)
Title: Don't rely on 'webkitMatchesSelector', find out prefix on load instead

Pull request #21 was definitely a welcome performance improvement, but it made space-pen completely unusable on non-webkit browsers for me.

I've tried adapting this [jsperf test](http://jsperf.com/mozmatchesselector/11) to use the browser-specific version of 'matchesElement' (which will probably be prefixed for quite some time still).

The prefix sniffing is only done once, on load, and where the other jQuery functions are added (view, views) but the code might not look as clean as per atom standards - let me know if you can think of a better way and I'll happily adapt it.

With that change, I don't think there's any change in runtime performance, and it supports latest Firefox again (along with older IEs, probably, since it fallbacks on jQuery.is).