Index: ui/webui/resources/js/cr/ui/bubble_button.js |
diff --git a/ui/webui/resources/js/cr/ui/bubble_button.js b/ui/webui/resources/js/cr/ui/bubble_button.js |
index 7216a2d4180b32e434a2e65d2aafec4875084eb6..fa1d8a88b31e80988a183a38abe80236397f98b1 100644 |
--- a/ui/webui/resources/js/cr/ui/bubble_button.js |
+++ b/ui/webui/resources/js/cr/ui/bubble_button.js |
@@ -8,6 +8,7 @@ cr.define('cr.ui', function() { |
* keyboard or mouse. |
* @constructor |
* @extends {HTMLSpanElement} |
+ * @implements {EventListener} |
*/ |
var BubbleButton = cr.ui.define('span'); |
@@ -71,10 +72,19 @@ cr.define('cr.ui', function() { |
event.preventDefault(); |
return; |
} |
- this.toggleBubble_(); |
+ this.toggleBubble(); |
event.preventDefault(); |
event.stopPropagation(); |
}, |
+ |
+ /** |
+ * Abstract method: subclasses should overwrite it. There is no way to mark |
+ * method as abstract for Closure Compiler, as of |
+ * https://github.com/google/closure-compiler/issues/104. |
+ * @type {!Function|undefined} |
+ * @protected |
+ */ |
+ toggleBubble: assertNotReached, |
}; |
// Export. |