From d97135273272014476bd9f769a2e0824fcd6b99b Mon Sep 17 00:00:00 2001 From: Seva Lotoshnikov Date: Thu, 10 Apr 2014 18:59:41 -0700 Subject: [PATCH] Use right annotation Using the right annotation to force the compiler to keep the seemingly no-op statement. This fixes it for all compilation modes. Signed-off-by: Andreas Tolfsen --- javascript/atoms/keyboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/atoms/keyboard.js b/javascript/atoms/keyboard.js index 84598eabb497e..8de6ac398eef5 100644 --- a/javascript/atoms/keyboard.js +++ b/javascript/atoms/keyboard.js @@ -810,10 +810,10 @@ bot.Keyboard.prototype.updateOnHomeOrEnd_ = function(key) { * element. * @see https://code.google.com/p/chromium/issues/detail?id=330456 * @private + * @suppress {uselessCode} */ bot.Keyboard.checkCanUpdateSelection_ = function(element) { try { - /** @suppress {suspiciousCode} */ element.selectionStart; } catch (ex) { // The native error message is actually pretty informative, just add a