From 3328553eccb412bef50de535721309a538e6b3d3 Mon Sep 17 00:00:00 2001 From: Ben Alpert Date: Tue, 8 Oct 2013 16:21:17 -0700 Subject: [PATCH] Tweak verbiage about required polyfills I found it weird how the es5-shim comment came after the list of functions; now it's before. --- docs/07-working-with-the-browser.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/07-working-with-the-browser.md b/docs/07-working-with-the-browser.md index 538b32f37..f5610e508 100644 --- a/docs/07-working-with-the-browser.md +++ b/docs/07-working-with-the-browser.md @@ -119,14 +119,16 @@ 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): + * `Array.isArray` * `Array.prototype.forEach` * `Array.prototype.indexOf` -* `Function.prototype.bind` +* `Array.prototype.some` * `Date.now` -* `Array.prototype.some` (also in `es5-shim.js`) +* `Function.prototype.bind` -All of these can be polyfilled using `es5-shim.js` from [https://github.com/kriskowal/es5-shim](https://github.com/kriskowal/es5-shim). +Other required polyfills: -* `console.*` - Only needed when not using the minified build. If you need to polyfill this, try [https://github.com/paulmillr/console-polyfill](https://github.com/paulmillr/console-polyfill). -* `Object.create` - Provided in `es5-sham.js` @ [https://github.com/kriskowal/es5-shim](https://github.com/kriskowal/es5-shim). +* `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).