I am using LABjs to load in a vast amount of javascript, and all seems to be working fine, until the final wait (which waits to make sure everything is loaded), then tells knockout to bind the view model:
$LAB
.script("../lotsofJS.js")
.wait(function () {
var homepageVM = new HomepageVM();
ko.applyBindings(homepageVM);
alert("complete");
});
For some reason the alert is never called, but firebug doesn't see any exceptions thrown or console output. Does LABjs consume exceptions if they occur and not bubble them?
I should also mention that when stepping through ko and applyBindings
are both listed as objects and methods. So it doesn't look like its a problem calling ko, and it even steps into the ko minified file.