Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : Is there a way to have can.view call a callback function when an EJS template is actually rendered and visible on screen?

$
0
0
There is not, but I use 

$(..).append(can.view(...)).resize()

and have my widgets listening to jQuery++'s resize.



A resize event handler typically does what you want in the case that something was just inserted into the DOM or the dimensions of the element have changed.  Kills 2 birds with one stone.

Viewing all articles
Browse latest Browse all 3491

Trending Articles