update translations
This commit is contained in:
parent
764a5ac824
commit
c2e474e8e9
105 changed files with 13294 additions and 12883 deletions
|
@ -257,8 +257,16 @@ context. You should place this element as a child of `<body>` whenever possible.
|
|||
|
||||
_toggleListener: function(enable, node, event, boundListener, capture) {
|
||||
if (enable) {
|
||||
// enable document-wide tap recognizer
|
||||
if (event === 'tap') {
|
||||
Polymer.Gestures.add(document, 'tap', null);
|
||||
}
|
||||
node.addEventListener(event, boundListener, capture);
|
||||
} else {
|
||||
// disable document-wide tap recognizer
|
||||
if (event === 'tap') {
|
||||
Polymer.Gestures.remove(document, 'tap', null);
|
||||
}
|
||||
node.removeEventListener(event, boundListener, capture);
|
||||
}
|
||||
},
|
||||
|
@ -269,7 +277,7 @@ context. You should place this element as a child of `<body>` whenever possible.
|
|||
}
|
||||
// async so we don't auto-close immediately via a click.
|
||||
this._toggleListenersAsync = this.async(function() {
|
||||
this._toggleListener(this.opened, document, 'click', this._boundOnCaptureClick, true);
|
||||
this._toggleListener(this.opened, document, 'tap', this._boundOnCaptureClick, true);
|
||||
this._toggleListener(this.opened, document, 'keydown', this._boundOnCaptureKeydown, true);
|
||||
this._toggleListenersAsync = null;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue