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

Unified Diff: Source/devtools/front_end/StylesSidebarPane.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/StatusBarButton.js ('k') | Source/devtools/front_end/TempFile.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/StylesSidebarPane.js
diff --git a/Source/devtools/front_end/StylesSidebarPane.js b/Source/devtools/front_end/StylesSidebarPane.js
index 0b66b9c2bcc934a4e7f847cd3903f132e4b324af..79bb026e3810ccc9f0c402417c70735356357332 100644
--- a/Source/devtools/front_end/StylesSidebarPane.js
+++ b/Source/devtools/front_end/StylesSidebarPane.js
@@ -351,8 +351,8 @@ WebInspector.StylesSidebarPane.prototype = {
}
if (this._computedStylePane.isShowing())
- WebInspector.cssModel.getComputedStyleAsync(node.id, computedCallback.bind(this));
- WebInspector.cssModel.getInlineStylesAsync(node.id, inlineCallback.bind(this));
+ WebInspector.cssModel.getComputedStyleAsync(node.id, computedCallback);
+ WebInspector.cssModel.getInlineStylesAsync(node.id, inlineCallback);
WebInspector.cssModel.getMatchedStylesAsync(node.id, true, true, stylesCallback.bind(this));
},
@@ -1931,7 +1931,7 @@ WebInspector.StylePropertyTreeElementBase.prototype = {
}
if (value) {
- var colorProcessor = processValue.bind(this, WebInspector.StylesSidebarPane._colorRegex, this._processColor.bind(this, nameElement, valueElement), null);
+ var colorProcessor = processValue.bind(null, WebInspector.StylesSidebarPane._colorRegex, this._processColor.bind(this, nameElement, valueElement), null);
valueElement.appendChild(processValue(/url\(\s*([^)]+)\s*\)/g, linkifyURL.bind(this), WebInspector.CSSMetadata.isColorAwareProperty(this.name) && this.parsedOk ? colorProcessor : null, value));
}
« no previous file with comments | « Source/devtools/front_end/StatusBarButton.js ('k') | Source/devtools/front_end/TempFile.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698