Skip to content

Commit

Permalink
Merge pull request #294 from cujojs/not-promise-compliant
Browse files Browse the repository at this point in the history
Add note about non-compliance with ES6 Promise spec
  • Loading branch information
unscriptable committed May 12, 2016
2 parents 8ca08b0 + a50e3c2 commit 13170ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ Promises-based API for executing callbacks.
* ['main', 'other', 'another']: Module names or plugin-prefixed resource files.
* callback: Function to receive modules or resources. Optional.
* errorback: Function to call if an exception occurred while loading. Optional.
* For full CommonJS Promises/A+ compliance, use [when.js](https://github.com/cujojs/when)
* `when(curl(['dep1'])).then(callback);`
* Note: curl.js's Promises are *not* compliant with ES6 or Promises/A+ so they may not behave as you'd expect. For full compliance, use [when.js](https://github.com/cujojs/when) or any another ES6 Promise shim.
* `when(curl(['dep1'])).then(callback);` or `Promise.resolve(curl(['dep1'])).then(callback);`

---------

Expand Down

0 comments on commit 13170ed

Please sign in to comment.