Skip to content

Commit

Permalink
Use right annotation
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
sevaseva authored and andreastt committed Apr 11, 2014
1 parent d8bf859 commit d971352
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/atoms/keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d971352

Please sign in to comment.