diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-02-10 13:35:51 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-02-10 13:35:58 +0100 |
commit | b4b710fb4379bf9ac1a19d8e9b9708c60380fdb4 (patch) | |
tree | 7385109f579a01c264be93ab3f6a99ff3b57e7c3 /js/vendor/desandro-matches-selector/README.md | |
parent | 7048d4e20198c5134d539c26dd9ed98a7580ef43 (diff) |
try to update to angular 1.5
Diffstat (limited to 'js/vendor/desandro-matches-selector/README.md')
-rw-r--r-- | js/vendor/desandro-matches-selector/README.md | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/js/vendor/desandro-matches-selector/README.md b/js/vendor/desandro-matches-selector/README.md new file mode 100644 index 000000000..09fd5f378 --- /dev/null +++ b/js/vendor/desandro-matches-selector/README.md @@ -0,0 +1,27 @@ +# matchesSelector helper + +[`matches`/`matchesSelector`](https://developer.mozilla.org/en-US/docs/Web/API/Element/matches) is pretty hot :fire:, but has [vendor-prefix baggage](http://caniuse.com/#feat=matchesselector) :handbag: :pouch:. This helper function takes care of that, without polyfilling or augmenting `Element.prototype`. + +``` js +matchesSelector( elem, selector ); +// for example +matchesSelector( myElem, 'div.my-hawt-selector' ); +``` + +## Install + +Download [matches-selector.js](https://github.com/desandro/matches-selector/raw/master/matches-selector.js) + +Install with [Bower](http://bower.io): `bower install matches-selector` + +[Install with npm](https://www.npmjs.org/package/desandro-matches-selector): `npm install desandro-matches-selector` + +## Browser support + +IE10+, all modern browsers + +Use [matchesSelector v1](https://github.com/desandro/matches-selector/releases/tag/v1.0.3) for IE8 and IE9 support. + +## MIT license + +matchesSelector is released under the [MIT license](http://desandro.mit-license.org) |