It appears to me that promises are a part of the default Polymer polyfills. 
I do not know this for a fact, but promises seem to be working just fine 
straight out of the Polymer Starter Kit.

var promise = new Promise(function(resolve, reject)  {
    resolve('Yay, I am a promise');
});
promise.then(function(yay) {
    console.log(yay);
});

My console returned  . . .
    -> Yay, I am a promise
. . . so I am assuming promises work with Polymer. :)

On Thursday, October 17, 2013 at 10:29:28 AM UTC-5, Brian Kardell wrote:
>
> Given all that polymer is doing with normalizing the layers, etc - it 
> feels like polymer should include a prollyfill for Promises.  Would make 
> several parts of the code easier to grok and manage.  In mucking with the 
> patterns in HTML Imports and attempting to shim in something like the parse 
> observers I suggested elsewhere I hit up against how Loader is used and it 
> looks like it is effectively just managing something like promises there... 
> In the existing code you know all link tags up front because you wait until 
> DOMContentLoaded, so that works fine... Shifting this way means that isn't 
> true.  With promises, that would be pretty easy to plug in in the right 
> place I think, but it seems there are callback chains in the pattern right 
> now that make this hard.  
>
> Feels like Promises are an important part of the future platform, let's 
> add it?
>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/1d8042bd-177f-4158-b947-c63fe1f35bf5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to