Recommend this page to a friend! |
Classes of Sergey Beskorovayniy | Hackernews Vue | app/js/lib/es6-promise/README.md | Download |
|
|
DownloadES6-Promise (subset of rsvp.js)This is a polyfill of the ES6 Promise. The implementation is a subset of rsvp.js extracted by @jakearchibald, if you're wanting extra features and more debugging options, check out the full library. For API details and how to use promises, see the <a href="http://www.html5rocks.com/en/tutorials/es6/promises/">JavaScript Promises HTML5Rocks article</a>. DownloadsNode.jsTo install:
To use:
BowerTo install:
Usage in IE<9
However, please remember that such technique is already provided by most common minifiers, making the resulting code safe for old browsers and production:
Or use
Auto-polyfillTo polyfill the global environment (either in Node or in the browser via CommonJS) use the following code snippet:
Notice that we don't assign the result of Building & TestingYou will need to have PhantomJS installed globally in order to run the tests.
|