Skip to content

Commit

Permalink
refactor: remove polyfills (#1110)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Remove polyfills from library
  • Loading branch information
eddyerburgh authored Jan 20, 2019
1 parent 1d1d003 commit ade4398
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 27 deletions.
2 changes: 0 additions & 2 deletions packages/test-utils/src/mount.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// @flow

import './matches-polyfill'
import './object-assign-polyfill'
import Vue from 'vue'
import VueWrapper from './vue-wrapper'
import createInstance from 'create-instance'
Expand Down
23 changes: 0 additions & 23 deletions packages/test-utils/src/object-assign-polyfill.js

This file was deleted.

1 change: 1 addition & 0 deletions test/setup/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = function (config) {
reporters: ['spec'],
files: [
'../../node_modules/babel-polyfill/dist/polyfill.js',
'./polyfills.js',
'load-tests.js'
],
preprocessors: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ if (typeof Element !== 'undefined' && !Element.prototype.matches) {
Element.prototype.oMatchesSelector ||
Element.prototype.webkitMatchesSelector ||
function (s) {
const matches = (this.document || this.ownerDocument).querySelectorAll(s)
let i = matches.length
var matches = (this.document || this.ownerDocument).querySelectorAll(s)
var i = matches.length
while (--i >= 0 && matches.item(i) !== this) {}
return i > -1
}
Expand Down

0 comments on commit ade4398

Please sign in to comment.