oop - Javascript OO / jQuery.class() plug in causing problems -
i'm working code uses jquery plugin give class style inheritance( http://v3.javascriptmvc.com/docs/jquery.class.html#&who=jquery.class ). it's causing me lot of problems. in particular, class evaluated before called. when try do: $.class.extend('mountain',{ //@static init: function() { this.elev = new google.maps.elevationservice(); } }); i can't because code run before google maps loads, leading undefined error. hoping attach listener google maps load event , call mountain.inti(), while can original class runs before i've load event, still causing error. any advice? perhaps diagnosis wrong? running in meteor, though i'm not sure if that's relevant...