Index: ui/keyboard/resources/elements/kb-key.html |
diff --git a/ui/keyboard/resources/elements/kb-key.html b/ui/keyboard/resources/elements/kb-key.html |
index a7dae77f9f76cd90397262fbd3ff9defdd1517ce..5afcb338a9c3f5271d08890d6018cc229fc63bf3 100644 |
--- a/ui/keyboard/resources/elements/kb-key.html |
+++ b/ui/keyboard/resources/elements/kb-key.html |
@@ -190,11 +190,10 @@ |
longPressTimer: undefined, |
down: function(event) { |
- var self = this; |
- this.longPressTimer = this.asyncMethod(function() { |
- if (self.longPressTimer) { |
- clearTimeout(self.longPressTimer); |
- self.longPressTimer = undefined; |
+ this.longPressTimer = this.async(function() { |
+ if (this.longPressTimer) { |
+ clearTimeout(this.longPressTimer); |
+ this.longPressTimer = undefined; |
var details = { |
left: this.offsetLeft, |
top: this.offsetTop, |