Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(462)

Unified Diff: Source/devtools/front_end/ContentProviders.js

Issue 202623004: DevTools: [JSDoc] Fix function bind()-ing against their @this annotations (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove unneeded code Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/ContentProviders.js
diff --git a/Source/devtools/front_end/ContentProviders.js b/Source/devtools/front_end/ContentProviders.js
index f8321150c27de77d75ca65ee4b79d5b402f2acad..2ae85ad81213e648020dbf49b665e205edb2f44f 100644
--- a/Source/devtools/front_end/ContentProviders.js
+++ b/Source/devtools/front_end/ContentProviders.js
@@ -135,7 +135,6 @@ WebInspector.ConcatenatedScriptsContentProvider.prototype = {
/**
* @param {!WebInspector.Script} script
* @param {!Array.<!PageAgent.SearchMatch>} searchMatches
- * @this {WebInspector.ConcatenatedScriptsContentProvider}
*/
function searchCallback(script, searchMatches)
{
@@ -145,12 +144,12 @@ WebInspector.ConcatenatedScriptsContentProvider.prototype = {
results[script.scriptId].push(searchMatch);
}
scriptsLeft--;
- maybeCallback.call(this);
+ maybeCallback();
}
maybeCallback();
for (var i = 0; i < scripts.length; ++i)
- scripts[i].searchInContent(query, caseSensitive, isRegex, searchCallback.bind(this, scripts[i]));
+ scripts[i].searchInContent(query, caseSensitive, isRegex, searchCallback.bind(null, scripts[i]));
},
/**
« no previous file with comments | « Source/devtools/front_end/ContentProviderBasedProjectDelegate.js ('k') | Source/devtools/front_end/Database.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698