Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ES5 shim for IE 8 #1346

Merged
merged 3 commits into from
Jan 11, 2017
Merged

Added ES5 shim for IE 8 #1346

merged 3 commits into from
Jan 11, 2017

Conversation

brian-learningpool
Copy link
Member

I've added the shim from https://github.com/inexorabletash/polyfill/blob/master/es5.js.

This provides implementations for:

  • Object.getPrototypeOf
  • Object getOwnPropertyNames
  • Object.create
  • Object.defineProperty
  • Object.defineProperties
  • Object.keys
  • Function.prototype.bind
  • Array.isArray
  • Array.prototype.indexOf
  • Array.prototype.lastIndexOf
  • Array.prototype.every
  • Array.prototype.some
  • Array.prototype.forEach
  • Array.prototype.map
  • Array.prototype.filter
  • Array.prototype.reduce
  • Array.prototype.reduceRight
  • String.prototype.trim
  • Date.now
  • Date.prototype.toISOString

I've added the shim from https://github.com/inexorabletash/polyfill/blob/master/es5.js.

This provides implementations for:
- Object.getPrototypeOf
- Object getOwnPropertyNames
- Object.create
- Object.defineProperty
- Object.defineProperties
- Object.keys
- Function.prototype.bind
- Array.isArray
- Array.prototype.indexOf
- Array.prototype.lastIndexOf
- Array.prototype.every
- Array.prototype.some
- Array.prototype.forEach
- Array.prototype.map
- Array.prototype.filter
- Array.prototype.reduce
- Array.prototype.reduceRight
- String.prototype.trim
- Date.now
- Date.prototype.toISOString
Copy link
Member

@oliverfoster oliverfoster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add this in the scriptLoader.js ? Save having to update all the spoor files? Like we do with jquery?

Conditinally loaded via Modernizr now rather than conditionals in index.html.
@brian-learningpool
Copy link
Member Author

Good point, @oliverfoster. This is now done, tested locally in IE 8.

@oliverfoster
Copy link
Member

ta dude

@brian-learningpool brian-learningpool merged commit 8ec215a into master Jan 11, 2017
@brian-learningpool brian-learningpool deleted the issue/1335 branch January 11, 2017 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants