Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
weinre webkit angular fix
function whackWebkitMatchesSelector() {
var oldMatches = Element.prototype.webkitMatchesSelector
function newMatches(selector) {
try {
return, selector)
catch (err) {
return false
Element.prototype.webkitMatchesSelector = newMatches
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment