diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-03-25 20:19:57 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-03-25 20:19:57 +0100 |
commit | f2a65b0a4aa1cd6448ec5236190dcdf1f0eb12c4 (patch) | |
tree | 5be26b5c74561b59d5662046fe8ee82c08c120cd /js/vendor/desandro-matches-selector/matches-selector.js | |
parent | 8a58b145cf7d05d6c73043700b27813125d9a88f (diff) |
remove compiled js and 3rdparty deps from the repo
Diffstat (limited to 'js/vendor/desandro-matches-selector/matches-selector.js')
-rw-r--r-- | js/vendor/desandro-matches-selector/matches-selector.js | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/js/vendor/desandro-matches-selector/matches-selector.js b/js/vendor/desandro-matches-selector/matches-selector.js deleted file mode 100644 index 482a795e9..000000000 --- a/js/vendor/desandro-matches-selector/matches-selector.js +++ /dev/null @@ -1,53 +0,0 @@ -/** - * matchesSelector v2.0.1 - * matchesSelector( element, '.selector' ) - * MIT license - */ - -/*jshint browser: true, strict: true, undef: true, unused: true */ - -( function( window, factory ) { - /*global define: false, module: false */ - 'use strict'; - // universal module definition - if ( typeof define == 'function' && define.amd ) { - // AMD - define( factory ); - } else if ( typeof module == 'object' && module.exports ) { - // CommonJS - module.exports = factory(); - } else { - // browser global - window.matchesSelector = factory(); - } - -}( window, function factory() { - 'use strict'; - - var matchesMethod = ( function() { - var ElemProto = Element.prototype; - // check for the standard method name first - if ( ElemProto.matches ) { - return 'matches'; - } - // check un-prefixed - if ( ElemProto.matchesSelector ) { - return 'matchesSelector'; - } - // check vendor prefixes - var prefixes = [ 'webkit', 'moz', 'ms', 'o' ]; - - for ( var i=0; i < prefixes.length; i++ ) { - var prefix = prefixes[i]; - var method = prefix + 'MatchesSelector'; - if ( ElemProto[ method ] ) { - return method; - } - } - })(); - - return function matchesSelector( elem, selector ) { - return elem[ matchesMethod ]( selector ); - }; - -})); |