Skip to content

Commit

Permalink
Remove IE8 vendored polyfills
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrotherham committed May 4, 2023
1 parent 6c6c054 commit 996a51d
Show file tree
Hide file tree
Showing 22 changed files with 0 additions and 797 deletions.
3 changes: 0 additions & 3 deletions src/govuk/components/accordion/accordion.mjs
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
/* eslint-disable es-x/no-function-prototype-bind -- Polyfill imported */
/* eslint-disable es-x/no-string-prototype-trim -- Polyfill imported */

import { mergeConfigs, extractConfigByNamespace } from '../../common/index.mjs'
import { normaliseDataset } from '../../common/normalise-dataset.mjs'
import { I18n } from '../../i18n.mjs'
import '../../vendor/polyfills/Element/prototype/classList.mjs'
import '../../vendor/polyfills/Element/prototype/closest.mjs'
import '../../vendor/polyfills/Event.mjs' // addEventListener, event.target normalization and DOMContentLoaded
import '../../vendor/polyfills/Function/prototype/bind.mjs'
import '../../vendor/polyfills/String/prototype/trim.mjs'

/**
Expand Down
4 changes: 0 additions & 4 deletions src/govuk/components/button/button.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
/* eslint-disable es-x/no-function-prototype-bind -- Polyfill imported */

import { mergeConfigs } from '../../common/index.mjs'
import { normaliseDataset } from '../../common/normalise-dataset.mjs'
import '../../vendor/polyfills/Event.mjs' // addEventListener, event.target normalization and DOMContentLoaded
import '../../vendor/polyfills/Function/prototype/bind.mjs'

var KEY_SPACE = 32
var DEBOUNCE_TIMEOUT_IN_SECONDS = 1
Expand Down
6 changes: 0 additions & 6 deletions src/govuk/components/character-count/character-count.mjs
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
/* eslint-disable es-x/no-date-now -- Polyfill imported */
/* eslint-disable es-x/no-function-prototype-bind -- Polyfill imported */

import { closestAttributeValue } from '../../common/closest-attribute-value.mjs'
import { extractConfigByNamespace, mergeConfigs } from '../../common/index.mjs'
import { normaliseDataset } from '../../common/normalise-dataset.mjs'
import { I18n } from '../../i18n.mjs'
import '../../vendor/polyfills/Date/now.mjs'
import '../../vendor/polyfills/Element/prototype/classList.mjs'
import '../../vendor/polyfills/Event.mjs' // addEventListener, event.target normalization and DOMContentLoaded
import '../../vendor/polyfills/Function/prototype/bind.mjs'

/**
* Character count translation defaults
Expand Down
4 changes: 0 additions & 4 deletions src/govuk/components/checkboxes/checkboxes.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
/* eslint-disable es-x/no-function-prototype-bind -- Polyfill imported */

import '../../vendor/polyfills/Element/prototype/classList.mjs'
import '../../vendor/polyfills/Event.mjs' // addEventListener, event.target normalization and DOMContentLoaded
import '../../vendor/polyfills/Function/prototype/bind.mjs'

/**
* Checkboxes component
Expand Down
4 changes: 0 additions & 4 deletions src/govuk/components/details/details.mjs
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
/* eslint-disable es-x/no-function-prototype-bind -- Polyfill imported */

/**
* JavaScript 'polyfill' for HTML5's <details> and <summary> elements
* and 'shim' to add accessiblity enhancements for all browsers
*
* http://caniuse.com/#feat=details
*/
import { generateUniqueID } from '../../common/index.mjs'
import '../../vendor/polyfills/Event.mjs' // addEventListener, event.target normalization and DOMContentLoaded
import '../../vendor/polyfills/Function/prototype/bind.mjs'

var KEY_ENTER = 13
var KEY_SPACE = 32
Expand Down
4 changes: 0 additions & 4 deletions src/govuk/components/error-summary/error-summary.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
/* eslint-disable es-x/no-function-prototype-bind -- Polyfill imported */

import { mergeConfigs } from '../../common/index.mjs'
import { normaliseDataset } from '../../common/normalise-dataset.mjs'
import '../../vendor/polyfills/Element/prototype/closest.mjs'
import '../../vendor/polyfills/Event.mjs' // addEventListener, event.target normalization and DOMContentLoaded
import '../../vendor/polyfills/Function/prototype/bind.mjs'

/**
* JavaScript enhancements for the ErrorSummary
Expand Down
5 changes: 0 additions & 5 deletions src/govuk/components/header/header.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/* eslint-disable es-x/no-function-prototype-bind -- Polyfill imported */

import '../../vendor/polyfills/Event.mjs'
import '../../vendor/polyfills/Function/prototype/bind.mjs'

/**
* Header component
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { mergeConfigs } from '../../common/index.mjs'
import { normaliseDataset } from '../../common/normalise-dataset.mjs'
import '../../vendor/polyfills/Event.mjs' // addEventListener, event.target normalization and DOMContentLoaded

/**
* Notification Banner component
Expand Down
4 changes: 0 additions & 4 deletions src/govuk/components/radios/radios.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
/* eslint-disable es-x/no-function-prototype-bind -- Polyfill imported */

import '../../vendor/polyfills/Element/prototype/classList.mjs'
import '../../vendor/polyfills/Event.mjs' // addEventListener, event.target normalization and DOMContentLoaded
import '../../vendor/polyfills/Function/prototype/bind.mjs'

/**
* Radios component
Expand Down
4 changes: 0 additions & 4 deletions src/govuk/components/skip-link/skip-link.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
/* eslint-disable es-x/no-function-prototype-bind -- Polyfill imported */

import '../../vendor/polyfills/Element/prototype/classList.mjs'
import '../../vendor/polyfills/Event.mjs' // addEventListener, event.target normalization and DOMContentLoaded
import '../../vendor/polyfills/Function/prototype/bind.mjs'

/**
* Skip link component
Expand Down
6 changes: 0 additions & 6 deletions src/govuk/components/tabs/tabs.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
/* eslint-disable es-x/no-function-prototype-bind -- Polyfill imported */

import '../../vendor/polyfills/Element/prototype/classList.mjs'
import '../../vendor/polyfills/Element/prototype/nextElementSibling.mjs'
import '../../vendor/polyfills/Element/prototype/previousElementSibling.mjs'
import '../../vendor/polyfills/Event.mjs' // addEventListener, event.target normalization and DOMContentLoaded
import '../../vendor/polyfills/Function/prototype/bind.mjs'

/**
* Tabs component
Expand Down
13 changes: 0 additions & 13 deletions src/govuk/vendor/polyfills/Date/now.mjs

This file was deleted.

27 changes: 0 additions & 27 deletions src/govuk/vendor/polyfills/Document.mjs

This file was deleted.

119 changes: 0 additions & 119 deletions src/govuk/vendor/polyfills/Element.mjs

This file was deleted.

2 changes: 0 additions & 2 deletions src/govuk/vendor/polyfills/Element/prototype/classList.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import '../../Object/defineProperty.mjs'
import '../../DOMTokenList.mjs'
import '../../Element.mjs'

(function(undefined) {

Expand Down
3 changes: 0 additions & 3 deletions src/govuk/vendor/polyfills/Element/prototype/dataset.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import '../../Object/defineProperty.mjs'
import '../../Element.mjs'

(function(undefined) {

// Detection from https://github.com/Financial-Times/polyfill-library/13cf7c340974d128d557580b5e2dafcd1b1192d1/polyfills/Element/prototype/dataset/detect.js
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 996a51d

Please sign in to comment.