Index: chrome/browser/resources/extensions/extension_options_overlay.js |
diff --git a/chrome/browser/resources/extensions/extension_options_overlay.js b/chrome/browser/resources/extensions/extension_options_overlay.js |
index 899098d625ec446767be32d832602b97367fd582..192a617da5b5dc30e5971f6a674c943f1f2488c9 100644 |
--- a/chrome/browser/resources/extensions/extension_options_overlay.js |
+++ b/chrome/browser/resources/extensions/extension_options_overlay.js |
@@ -17,11 +17,11 @@ cr.define('extensions', function() { |
ExtensionOptionsOverlay.prototype = { |
/** |
* The function that shows the given element in the overlay. |
- * @type {Function} |
- * @param {HTMLElement} The element to show in the overlay. |
+ * @type {?function(HTMLDivElement)} Function that receives the element to |
+ * show in the overlay. |
* @private |
*/ |
- showOverlay_: undefined, |
+ showOverlay_: null, |
/** |
* Initialize the page. |
@@ -42,7 +42,7 @@ cr.define('extensions', function() { |
/** |
* Handles a click on the close button. |
- * @param {Event} e The click event. |
+ * @param {Event} event The click event. |
* @private |
*/ |
handleDismiss_: function(event) { |
@@ -83,7 +83,9 @@ cr.define('extensions', function() { |
* @private |
*/ |
setVisible_: function(isVisible) { |
- this.showOverlay_(isVisible ? $('extension-options-overlay') : null); |
+ this.showOverlay_(isVisible ? |
+ /** @type {HTMLDivElement} */($('extension-options-overlay')) : |
+ null); |
} |
}; |