sammy icon indicating copy to clipboard operation
sammy copied to clipboard

FadeIn/FadeOut

Open lyuba opened this issue 14 years ago • 1 comments

Suggested code from here is not working as expected: https://github.com/quirkey/sammy/blob/master/lib/sammy.js#L1107

Added callback to fix.

lyuba avatar Jan 28 '11 19:01 lyuba

Well, just realized that I will not work in a right way with the callback either and here is the case:

Somewhere in the root we have: this.partial(...) .then(function() { //bind events });

Events are not always binded correctly since then doesn't wait untill swap finishes it's fadeIns/fadeOuts.

Even worth situation happen with the renders happening in callbacks. For example,

this.partial("layout_view.ejs") .render("content_view.ejs") .appendTo($("#content"));

What happens here is that content view is not rendered since layout_view was rendered with an asynchronous function.

Is there any way to fix then to watch such cases? FadeIn/FadeOut is something really-really wanted :)

lyuba avatar Jan 28 '11 19:01 lyuba