Chromium Code Reviews

Unified Diff: Source/core/events/CustomEvent.cpp

Issue 1130763006: IDL: Add any support to IDL dictionary and use it in CustomEventInit (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « Source/core/events/CustomEvent.h ('k') | Source/core/events/CustomEvent.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/CustomEvent.cpp
diff --git a/Source/core/events/CustomEvent.cpp b/Source/core/events/CustomEvent.cpp
index 44524997b9688015a5bf6600d969388b23f0e47e..8fcd03d7a84f28349e0c0854fae6512336805a93 100644
--- a/Source/core/events/CustomEvent.cpp
+++ b/Source/core/events/CustomEvent.cpp
@@ -37,6 +37,8 @@ CustomEvent::CustomEvent()
CustomEvent::CustomEvent(const AtomicString& type, const CustomEventInit& initializer)
: Event(type, initializer)
{
+ if (initializer.hasDetail())
+ m_detail = initializer.detail();
}
CustomEvent::~CustomEvent()
« no previous file with comments | « Source/core/events/CustomEvent.h ('k') | Source/core/events/CustomEvent.idl » ('j') | no next file with comments »

Powered by Google App Engine