wilsonpage / fastdom

Eliminates layout thrashing by batching DOM measurement and mutation tasks
6.83k stars 240 forks source link

Any plans to Promise based API? #62

Closed ColCh closed 8 years ago

wilsonpage commented 8 years ago

Try out the v1-beta branch. It introduces the concept of 'extensions'. FastDom will ship with a couple of 'core' extensions, one of which is fastdom-promised.

You can try it out like:

var myFastdom = fastdom.extend(fastdomPromised);
myFastdom.measure(...).then(...);
ColCh commented 8 years ago

I think that's enough for this issue :)

wilsonpage commented 8 years ago

BTW looking for feedback on the v1-beta branch before I merge. Do you have time to take look? :)

ColCh commented 8 years ago

May be... I will be in "disabled" state for New Year and following week :) Happy NY BTW!

wilsonpage commented 8 years ago

Thank mate, no push! :)

On Thu, Dec 31, 2015 at 12:35 PM, Max Sysoev notifications@github.com wrote:

May be... I will be in "disabled" state for New Year and following week :) Happy NY BTW!

— Reply to this email directly or view it on GitHub https://github.com/wilsonpage/fastdom/issues/62#issuecomment-168187165.

wilsonpage commented 8 years ago

*rush