Sha256: 3869a52ad3471bef11af83f5939102d16ddb8e845f27be50fd2fb09de8b147c6

Contents?: true

Size: 1.35 KB

Versions: 490

Compression:

Stored size: 1.35 KB

Contents

(function (global, factory) {
	typeof exports === 'object' && typeof module !== 'undefined' ? factory() :
	typeof define === 'function' && define.amd ? define('GOVUKFrontend', factory) :
	(factory());
}(this, (function () { 'use strict';

(function(undefined) {

  // Detection from https://raw.githubusercontent.com/Financial-Times/polyfill-service/1f3c09b402f65bf6e393f933a15ba63f1b86ef1f/packages/polyfill-library/polyfills/Element/prototype/matches/detect.js
  var detect = (
    'document' in this && "matches" in document.documentElement
  );

  if (detect) return

  // Polyfill from https://raw.githubusercontent.com/Financial-Times/polyfill-service/1f3c09b402f65bf6e393f933a15ba63f1b86ef1f/packages/polyfill-library/polyfills/Element/prototype/matches/polyfill.js
  Element.prototype.matches = Element.prototype.webkitMatchesSelector || Element.prototype.oMatchesSelector || Element.prototype.msMatchesSelector || Element.prototype.mozMatchesSelector || function matches(selector) {
    var element = this;
    var elements = (element.document || element.ownerDocument).querySelectorAll(selector);
    var index = 0;

    while (elements[index] && elements[index] !== element) {
      ++index;
    }

    return !!elements[index];
  };

}).call('object' === typeof window && window || 'object' === typeof self && self || 'object' === typeof global && global || {});

})));

Version data entries

490 entries across 490 versions & 3 rubygems

Version Path
govuk_publishing_components-30.2.1 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_publishing_components-30.2.0 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_publishing_components-30.1.0 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_publishing_components-30.0.0 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_publishing_components-29.15.3 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_publishing_components-29.15.2 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_publishing_components-29.15.1 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_publishing_components-29.15.0 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_publishing_components-29.14.0 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_publishing_components-29.13.0 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_publishing_components-29.12.1 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_publishing_components-29.12.0 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_publishing_components-29.11.0 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_publishing_components-29.10.0 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_publishing_components-29.9.0 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_publishing_components-29.8.0 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_tech_docs-3.2.1 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_publishing_components-29.7.0 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_publishing_components-29.6.0 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_publishing_components-29.5.0 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js