IRC Log Viewer » #firebreath » 2013-03-27

IRC Nick Time (GMT-7) Message
somenickname 03:03 hello?
Leonid 13:03 Hello
I have a question about casting the objects. If I have a class let's say XAPI and I return it as a JS object from my plugin and then whatever I got from plugin to JS I want to pass back to plugin by calling register method. Is this possible?
I tried to receive it as FB::variant and then to cast it using FB::variant::cast<JSAPIPtr>(), but it throws and exception.
Then I tried FB::variant::cast<JSObjectPtr>() and it was fine, but I didn't manage to get my XAPI by boost::dynamic_pointer_cast<XAPI>(...)
My XAPI inherits from FB::JSAPIAuto
taxilian 13:03 yeah, it doesn't work that way on most browsers
see http://stackoverflow.com/questions/15286464/a-firebreath-jsapi-will-not-be-recognized-in-firefox