Closed Dylan-Chapman closed 8 years ago
Ah yes, I think this is a bug. The bug is here
fn
should be called like: fn.call(ctx)
.
Alternatively for a quickfix you can use either:
fastdomPromised.measure(() => ... );
fastdomPromised.measure(fn.bind(ctx));
Yep, you were right! fn.call(ctx)
on that line does the trick.
Could you send a PR? :)
On Tue, 3 May 2016 17:22 Dylan Chapman, notifications@github.com wrote:
Yep, you were right! fn.call(ctx) on that line does the trick.
— You are receiving this because you commented.
Reply to this email directly or view it on GitHub https://github.com/wilsonpage/fastdom/issues/81#issuecomment-216583756
I noticed some weird inconsistent behavior between fastdom and fastdom-promised earlier.
Is this intended behavior? Is this not a way in which context is supposed to be used?