Index: src/JsEngine.cpp |
=================================================================== |
--- a/src/JsEngine.cpp |
+++ b/src/JsEngine.cpp |
@@ -79,21 +79,21 @@ void AdblockPlus::JsEngine::SetEventCall |
eventCallbacks[eventName] = callback; |
} |
void AdblockPlus::JsEngine::RemoveEventCallback(const std::string& eventName) |
{ |
eventCallbacks.erase(eventName); |
} |
-void AdblockPlus::JsEngine::TriggerEvent(const std::string& eventName) |
+void AdblockPlus::JsEngine::TriggerEvent(const std::string& eventName, AdblockPlus::JsValueList& params) |
{ |
EventMap::iterator it = eventCallbacks.find(eventName); |
if (it != eventCallbacks.end()) |
- it->second(); |
+ it->second(params); |
} |
void AdblockPlus::JsEngine::Gc() |
{ |
while (!v8::V8::IdleNotification()); |
} |
AdblockPlus::JsValuePtr AdblockPlus::JsEngine::NewValue(const std::string& val) |