Index: Source/bindings/core/v8/custom/V8EventTargetCustom.cpp |
diff --git a/Source/bindings/core/v8/custom/V8EventTargetCustom.cpp b/Source/bindings/core/v8/custom/V8EventTargetCustom.cpp |
index e98351f7bd14df377c773619ec14b481f75ce069..11347467a5a919ebc26777261f11da52239ef781 100644 |
--- a/Source/bindings/core/v8/custom/V8EventTargetCustom.cpp |
+++ b/Source/bindings/core/v8/custom/V8EventTargetCustom.cpp |
@@ -51,4 +51,16 @@ v8::Handle<v8::Value> toV8(EventTarget* impl, v8::Handle<v8::Object> creationCon |
return impl->wrap(creationContext, isolate); |
} |
+void V8EventTarget::addEventListenerMethodEpilogueCustom(const v8::FunctionCallbackInfo<v8::Value>& info, EventTarget* impl) |
+{ |
+ if (info.Length() >= 2 && info[1]->IsObject() && !impl->toNode()) |
+ addHiddenValueToArray(info.GetIsolate(), info.Holder(), info[1], V8EventTarget::eventListenerCacheIndex); |
+} |
+ |
+void V8EventTarget::removeEventListenerMethodEpilogueCustom(const v8::FunctionCallbackInfo<v8::Value>& info, EventTarget* impl) |
+{ |
+ if (info.Length() >= 2 && info[1]->IsObject() && !impl->toNode()) |
+ removeHiddenValueFromArray(info.GetIsolate(), info.Holder(), info[1], V8EventTarget::eventListenerCacheIndex); |
+} |
+ |
} // namespace blink |