Ahhh.. the solution is always obvious, but never easy to find ..
thanks! ;)
On Oct 3, 7:03 pm, "Aaron Boodman" <[EMAIL PROTECTED]> wrote:
> On Fri, Oct 3, 2008 at 4:59 PM, Marshall Culpepper
>
> <[EMAIL PROTECTED]> wrote:
> > What'd like to be able to do is something like:
> > JsObject object;
> > if (JsTokenToObject_NoCoerce(token->token(), token->context(),
> > &object)) {
> > // process attributes of object here
> > }
>
> > Am I missing a way to convert a JsToken to the JsObject type defined
> > in js_types.h? I haven't been able to find it.. and it seems accessing
> > JsToken directly would be a daunting task given it's platform/browser
> > specific typedef/attributes
>
> JsObject encapsulates JsToken. You can create an empty JsObject
> instance, then use JsObject::SetObject to give it the token you got
> from the callback.
>
> Make sure to check that it is really an object first, with something
> like JsToken_IsObject.
>
> - a