Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Add es6 polyfill to all examples #1171

Merged
merged 1 commit into from
Apr 24, 2017

Commits on Apr 23, 2017

  1. Add es6 polyfill to all examples

    **what is the change?:**
    Draft uses some ES6 syntax and assumes users will pair it with an ES6
    polyfill. See
    https://github.com/facebook/draft-js/blob/c12640f05e8328f5c97902c0c5e94a02ba9f58be/docs/Advanced-Topics-Issues-and-Pitfalls.md#polyfills
    
    **why make this change?:**
    When testing some examples in IE they were not rendering, and threw an
    error because we use `String.prototype.startsWith` in Draft.
    
    **test plan:**
    Open the 'convertFromHTML' and 'media' example files in IE, and they
    will render.
    
    **issue:**
    facebookarchive#1165
    flarnie committed Apr 23, 2017
    Configuration menu
    Copy the full SHA
    40ff071 View commit details
    Browse the repository at this point in the history