static void oncompleteAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info) { INC_STATS("DOM.IDBTransaction.oncomplete._set"); IDBTransaction* imp = V8IDBTransaction::toNative(info.Holder()); transferHiddenDependency(info.Holder(), imp->oncomplete(), value, V8IDBTransaction::eventListenerCacheIndex); imp->setOncomplete(V8DOMWrapper::getEventListener(value, true, ListenerFindOrCreate)); return; }
static v8::Handle<v8::Value> oncompleteAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { INC_STATS("DOM.IDBTransaction.oncomplete._get"); IDBTransaction* imp = V8IDBTransaction::toNative(info.Holder()); return imp->oncomplete() ? v8::Handle<v8::Value>(static_cast<V8AbstractEventListener*>(imp->oncomplete())->getListenerObject(imp->scriptExecutionContext())) : v8::Handle<v8::Value>(v8::Null()); }