Symeon Breen
Symeon Breen
Scrolling works ok on my mobile and my sites that use the menu, so there must be something particular to your implementation...
There is the close method So something like $("#mainbodyelement").click(function () { $("#my-menu").slicknav('close') }); will close the menu - this is what i use and it works.
ahh yes - my menu is actually outside of the #mainbodyelement - you would have to determine somehow if you are opening the menu or not, and then either close...
+1 on this idea
In theory jhnns you do, but you dont know when rivets has finished doing its stuff.
So solution to this is myview = rivets.Bind(el,data); setTimeout(applyMylistenersFunction,0); then the function to apply the listeners is attached to the end of the queue
setTimeout(f,0) is quite a necessary step on many occasions, certainly not a hack. There is a great description from DVK here http://stackoverflow.com/questions/779379/why-is-settimeoutfn-0-sometimes-useful (Note the accepted answer is not the description...
Yes jhnns - i have just taken a look at the rivets code (dont know why i did not do that before ;) ) and it is not asynchronous, so...