bool VRIAJSRuntimeContext::_AttachToJSContext( XBOX::VJSContext& inContext) { bool done = inContext.GetGlobalObjectPrivateInstance()->SetSpecific( 'riax', this, VJSSpecifics::DestructorReleaseVObject); if (done) { Retain(); } return done; }
bool VRIAJSRuntimeContext::_DetachFromJSContext( XBOX::VJSContext& inContext) { assert( VRIAJSRuntimeContext::GetFromJSContext( inContext) == this); return inContext.GetGlobalObjectPrivateInstance()->SetSpecific( 'riax', NULL, VJSSpecifics::DestructorReleaseVObject); }