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

Mention need for es5-sham.js in docs #892

Merged
merged 3 commits into from
Jan 15, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 11 additions & 4 deletions docs/docs/07-working-with-the-browser.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ In addition to that philosophy, we've also taken the stance that we, as authors

### Polyfills Needed to Support Older Browsers

These six functions can be polyfilled using `es5-shim.js` from [kriskowal's es5-shim](https://github.com/kriskowal/es5-shim):
`es5-shim.js` from [kriskowal's
es5-shim](https://github.com/kriskowal/es5-shim) provides the following
that React needs:

* `Array.isArray`
* `Array.prototype.forEach`
Expand All @@ -122,10 +124,15 @@ These six functions can be polyfilled using `es5-shim.js` from [kriskowal's es5-
* `Date.now`
* `Function.prototype.bind`

Other required polyfills:
`es5-sham.js`, also from [kriskowal's
117 es5-shim](https://github.com/kriskowal/es5-shim), provides the
following that React needs:

* `Object.create` – Provided by `es5-sham.js` from [kriskowal's es5-shim](https://github.com/kriskowal/es5-shim).
* `console.*` – Only needed when using the unminified build. If you need to polyfill this, try [paulmillr's console-polyfill](https://github.com/paulmillr/console-polyfill).
* `Object.create`

The unminified build of React needs the following from [paulmillr's console-polyfill](https://github.com/paulmillr/console-polyfill).

* `console.*`


### Cross-browser Issues
Expand Down