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

Unified Diff: chrome/browser/resources/extensions/extension_options_overlay.js

Issue 508283002: Revert "Typecheck JS files for chrome://extensions" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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: 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 2f16eb60c96c78a7152dd24a83b14bc22b4bcd39..e51e1fe34b664cb5b620fe0f09dc006ede6ca026 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(HTMLDivElement)} Function that receives the element to
- * show in the overlay.
+ * @type {Function}
+ * @param {HTMLElement} The element to show in the overlay.
* @private
*/
- showOverlay_: null,
+ showOverlay_: undefined,
/**
* Initialize the page.
@@ -42,7 +42,7 @@ cr.define('extensions', function() {
/**
* Handles a click on the close button.
- * @param {Event} event The click event.
+ * @param {Event} e The click event.
* @private
*/
handleDismiss_: function(event) {
@@ -150,9 +150,7 @@ cr.define('extensions', function() {
* @private
*/
setVisible_: function(isVisible) {
- this.showOverlay_(isVisible ?
- /** @type {HTMLDivElement} */($('extension-options-overlay')) :
- null);
+ this.showOverlay_(isVisible ? $('extension-options-overlay') : null);
}
};
« no previous file with comments | « chrome/browser/resources/extensions/extension_loader.js ('k') | chrome/browser/resources/extensions/extensions.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698