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

Unified Diff: Source/devtools/front_end/ui/StatusBarButton.js

Issue 340513003: DevTools: Add JSDoc for static methods, fix JSDoc types and induced errors (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased patch Created 6 years, 6 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/ui/SidebarPane.js ('k') | Source/devtools/front_end/ui/View.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ui/StatusBarButton.js
diff --git a/Source/devtools/front_end/ui/StatusBarButton.js b/Source/devtools/front_end/ui/StatusBarButton.js
index 0178d09862108ed4e3c6b7a39644a436a936aafc..cc0128d736df8995515d13daec41048e49926a66 100644
--- a/Source/devtools/front_end/ui/StatusBarButton.js
+++ b/Source/devtools/front_end/ui/StatusBarButton.js
@@ -450,7 +450,7 @@ WebInspector.StatusBarButton.Provider.prototype = {
/**
* @constructor
* @extends {WebInspector.StatusBarItem}
- * @param {?function(!Event)} changeHandler
+ * @param {?function(?Event)} changeHandler
* @param {string=} className
*/
WebInspector.StatusBarComboBox = function(changeHandler, className)
@@ -544,7 +544,7 @@ WebInspector.StatusBarComboBox.prototype = {
*/
select: function(option)
{
- this._selectElement.selectedIndex = Array.prototype.indexOf.call(this._selectElement, option);
+ this._selectElement.selectedIndex = Array.prototype.indexOf.call(/** @type {?} */ (this._selectElement), option);
},
/**
« no previous file with comments | « Source/devtools/front_end/ui/SidebarPane.js ('k') | Source/devtools/front_end/ui/View.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698