-
Notifications
You must be signed in to change notification settings - Fork 422
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
Stache promise support doesn't work with ES6 promises #2359
Comments
Looking at your example, I don't think native Promises have a |
That's not why. We add one. Sent from my iPhone
|
I think we should add the same properties to native promises. Or at least document that this support is only for deferreds. |
A+ promises must be working in some fashion, otherwise, all the promises produced by can-connect, which are not native, but A+ (which is close enough) do work. |
Also, we don't need to add anything to native promises, we only have to make sure |
This shows native promises working if |
awesome thanks for looking into this |
https://canjs.com/docs/can.stache.html#section_WorkingwithPromises
The support described here for promises in stache templates appears to only apply to jQuery deferreds. ES6 promises are just treated as any other object in a template.
If this is intended the docs should be updated to reflect it.
A test case to demonstrate: https://github.com/nlundquist/canjs-template-promise-test
Correction: this is resolved by #2247
The text was updated successfully, but these errors were encountered: