Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/api.js

Issue 29389580: Issue 1397 - FilterEngine::ForceUpdateCheck crashes when passed a 0 std::function (Closed)
Patch Set: Created March 20, 2017, 2:11 p.m.
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
Download patch
« no previous file with comments | « include/AdblockPlus/FilterEngine.h ('k') | src/FilterEngine.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/api.js
diff --git a/lib/api.js b/lib/api.js
index d558c5ff74ab2b35bad812b4b8bd0060257529e9..80f14469f1aa7d270747d874806fdc38d859d8e7 100644
--- a/lib/api.js
+++ b/lib/api.js
@@ -207,7 +207,7 @@ var API = (function()
forceUpdateCheck: function(eventName)
{
- checkForUpdates(_triggerEvent.bind(null, eventName));
+ checkForUpdates(eventName ? _triggerEvent.bind(null, eventName) : null);
},
getHostFromUrl: function(url)
« no previous file with comments | « include/AdblockPlus/FilterEngine.h ('k') | src/FilterEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld