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

Unified Diff: Source/devtools/front_end/ElementsPanel.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
« no previous file with comments | « Source/devtools/front_end/DebuggerModel.js ('k') | Source/devtools/front_end/ElementsTreeOutline.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ElementsPanel.js
diff --git a/Source/devtools/front_end/ElementsPanel.js b/Source/devtools/front_end/ElementsPanel.js
index b58d03aedc54dc0953ff731e475064553df78721..17ce253444a7c9edb849edf9b23f995b934bbcf4 100644
--- a/Source/devtools/front_end/ElementsPanel.js
+++ b/Source/devtools/front_end/ElementsPanel.js
@@ -383,7 +383,7 @@ WebInspector.ElementsPanel.prototype = {
this.treeOutline.populateContextMenu(contextMenu, event);
contextMenu.appendSeparator();
- contextMenu.appendCheckboxItem(WebInspector.UIString(WebInspector.useLowerCaseMenuTitles() ? "Word wrap" : "Word Wrap"), toggleWordWrap.bind(this), WebInspector.settings.domWordWrap.get());
+ contextMenu.appendCheckboxItem(WebInspector.UIString(WebInspector.useLowerCaseMenuTitles() ? "Word wrap" : "Word Wrap"), toggleWordWrap, WebInspector.settings.domWordWrap.get());
contextMenu.show();
},
@@ -1160,7 +1160,7 @@ WebInspector.ElementsPanel.prototype = {
if (target instanceof WebInspector.RemoteObject) {
var remoteObject = /** @type {!WebInspector.RemoteObject} */ (target);
if (remoteObject.subtype === "node")
- commandCallback = revealElement.bind(this, remoteObject);
+ commandCallback = revealElement.bind(null, remoteObject);
} else if (target instanceof WebInspector.DOMNode) {
var domNode = /** @type {!WebInspector.DOMNode} */ (target);
if (domNode.id)
« no previous file with comments | « Source/devtools/front_end/DebuggerModel.js ('k') | Source/devtools/front_end/ElementsTreeOutline.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698