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
defra_ruby_template-3.15.1 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
defra_ruby_template-3.15.0 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_tech_docs-3.4.0 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_tech_docs-3.3.1 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_publishing_components-34.7.0 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_publishing_components-34.6.0 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_publishing_components-34.5.1 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_publishing_components-34.5.0 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_publishing_components-34.4.2 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_publishing_components-34.4.1 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_publishing_components-34.4.0 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_publishing_components-34.3.0 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_publishing_components-34.2.0 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_publishing_components-34.1.3 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_publishing_components-34.1.2 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_tech_docs-3.3.0 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_publishing_components-34.1.1 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_publishing_components-34.1.0 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_publishing_components-34.0.0 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js
govuk_publishing_components-33.1.0 node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js