It does work fine if I make those methods part of PositionObservable and
change the binding to
emscripten::class_<PositionObservable>("PositionObservable")
.smart_ptr<boost::shared_ptr<PositionObservable>
>("shared_ptr<PositionObservable>")
.function("getPosition", &PositionObservable::getPositionJS)
.function("getAttitude", &PositionObservable::getAttitudeJS)
;
but, why doesn't it work with the helper methods? I'd rather not
pollute the object model with things specific to the JS bindings.
Thanks!
Josh