Rewrite Older Browsers polyfill section for clarity.
Richard Feldman committed
Jan 14, 2014 at 21:59 UTC
c3a2ea225656f8ac4b9a5cdb5107509d25385402
1 file changed
+11
-4
docs/docs/07-working-with-the-browser.md
+11
-4
@@ -113,7 +113,9 @@ In addition to that philosophy, we've also taken the stance that we, as authors
113
114
### Polyfills Needed to Support Older Browsers
115
116
-These six functions can be polyfilled using a combination of `es5-shim.js` and `es5-sham.js` from [kriskowal's es5-shim](https://github.com/kriskowal/es5-shim):
116
+`es5-shim.js` from [kriskowal's
117
+es5-shim](https://github.com/kriskowal/es5-shim) provides the following
118
+that React needs:
119
120
* `Array.isArray`
121
* `Array.prototype.forEach`
@@ -122,10 +124,15 @@ These six functions can be polyfilled using a combination of `es5-shim.js` and `
124
* `Date.now`
125
* `Function.prototype.bind`
126
125
-Other required polyfills:
127
+`es5-sham.js`, also from [kriskowal's
128
+117 es5-shim](https://github.com/kriskowal/es5-shim), provides the
129
+following that React needs:
130
127
-* `Object.create` – Provided by `es5-sham.js` from [kriskowal's es5-shim](https://github.com/kriskowal/es5-shim).
128
-* `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).
131
+* `Object.create`
132
+
133
+The unminified build of React needs the following from [paulmillr's console-polyfill](https://github.com/paulmillr/console-polyfill).
134
+
135
+* `console.*`
136
137
138
### Cross-browser Issues