Permalink
Browse files

Fixed role.js with additional *MatchesSelector overrides (to use with…

… Zepto.js)
  • Loading branch information...
cr0t committed Aug 24, 2012
1 parent 8cebc24 commit 84e8dc9c1147806a1b3bb3d19e7765626abbf1ab
Showing with 5 additions and 4 deletions.
  1. +5 −4 lib/role.js
View
@@ -8,11 +8,12 @@
};
}
}
-
+
function overridePrototype(klass){
for(var i=0; i<methods.length; i++)
overrideMethod(klass, methods[i]);
}
-
- overridePrototype(window.Element); overridePrototype(window.Document);
-}(this, ['querySelector', 'querySelectorAll']);
+
+ overridePrototype(window.Element);
+ overridePrototype(window.Document);
+}(this, ['querySelector', 'querySelectorAll', 'webkitMatchesSelector', 'mozMatchesSelector', 'oMatchesSelector', 'matchesSelector']);

0 comments on commit 84e8dc9

Please sign in to comment.