myAvailabilities works as expected everywhere (whether via event parameter, or Template.instance(), etc). However, containerHeight is null in EVERY case! Even though I can do console.log(Template.instance()) and see containerHeight and its value in the console!! How is this possible? If I assign a number literal like this.containerHeight = 600 then everything works fine, so it seems like a jQuery thing, but… what am I missing?
Yeah, it’s definitely just the DOM not being completely ready. If I do a setTimeout for like 2 seconds, this and other things that didn’t work finally work. Arrrgh. Is there any way to detect when it’s really ready?