make sure ._ osx files are properly ignored
This commit is contained in:
parent
cb8119840a
commit
67524136ed
48 changed files with 1239 additions and 387 deletions
|
@ -7469,9 +7469,8 @@ this.fire('dom-change');
|
|||
// handled). In either case, we can disregard `event.path`.
|
||||
|
||||
if (event.target === this) {
|
||||
var focused = event.type === 'focus';
|
||||
this._setFocused(focused);
|
||||
} else if (!this.shadowRoot) {
|
||||
this._setFocused(event.type === 'focus');
|
||||
} else if (!this.shadowRoot && !this.isLightDescendant(event.target)) {
|
||||
this.fire(event.type, {sourceEvent: event}, {
|
||||
node: this,
|
||||
bubbles: event.bubbles,
|
||||
|
@ -7626,14 +7625,43 @@ this.fire('dom-change');
|
|||
this._setPressed(false);
|
||||
},
|
||||
|
||||
__isFocusedLightDescendant: function(target) {
|
||||
var root = Polymer.dom(this).getOwnerRoot() || document;
|
||||
var focusedElement = root.activeElement;
|
||||
|
||||
// TODO(noms): remove the `this !== target` check once polymer#2610 is fixed.
|
||||
return this !== target && this.isLightDescendant(target) && target == focusedElement;
|
||||
},
|
||||
|
||||
/**
|
||||
* @param {!KeyboardEvent} event .
|
||||
*/
|
||||
_spaceKeyDownHandler: function(event) {
|
||||
var keyboardEvent = event.detail.keyboardEvent;
|
||||
var target = Polymer.dom(keyboardEvent).localTarget;
|
||||
|
||||
// Ignore the event if this is coming from a focused light child, since that
|
||||
// element will deal with it.
|
||||
if (this.__isFocusedLightDescendant(target))
|
||||
return;
|
||||
|
||||
keyboardEvent.preventDefault();
|
||||
keyboardEvent.stopImmediatePropagation();
|
||||
this._setPressed(true);
|
||||
},
|
||||
|
||||
_spaceKeyUpHandler: function() {
|
||||
/**
|
||||
* @param {!KeyboardEvent} event .
|
||||
*/
|
||||
_spaceKeyUpHandler: function(event) {
|
||||
var keyboardEvent = event.detail.keyboardEvent;
|
||||
var target = Polymer.dom(keyboardEvent).localTarget;
|
||||
|
||||
// Ignore the event if this is coming from a focused light child, since that
|
||||
// element will deal with it.
|
||||
if (this.__isFocusedLightDescendant(target))
|
||||
return;
|
||||
|
||||
if (this.pressed) {
|
||||
this._asyncClick();
|
||||
}
|
||||
|
@ -9405,6 +9433,8 @@ this.fire('dom-change');
|
|||
/**
|
||||
* Only runs if someone invokes the factory/constructor directly
|
||||
* e.g. `new Polymer.IronMeta()`
|
||||
*
|
||||
* @param {{type: (string|undefined), key: (string|undefined), value}=} config
|
||||
*/
|
||||
factoryImpl: function(config) {
|
||||
if (config) {
|
||||
|
@ -9569,6 +9599,8 @@ this.fire('dom-change');
|
|||
/**
|
||||
* Actually a factory method, not a true constructor. Only runs if
|
||||
* someone invokes it directly (via `new Polymer.IronMeta()`);
|
||||
*
|
||||
* @param {{type: (string|undefined), key: (string|undefined)}=} config
|
||||
*/
|
||||
factoryImpl: function(config) {
|
||||
if (config) {
|
||||
|
@ -12515,8 +12547,8 @@ The `aria-labelledby` attribute will be set to the header element, if one exists
|
|||
* <svg>
|
||||
* <defs>
|
||||
* <g id="shape">
|
||||
* <rect x="50" y="50" width="50" height="50" />
|
||||
* <circle cx="50" cy="50" r="50" />
|
||||
* <rect x="12" y="0" width="12" height="24" />
|
||||
* <circle cx="12" cy="12" r="12" />
|
||||
* </g>
|
||||
* </defs>
|
||||
* </svg>
|
||||
|
@ -12556,7 +12588,7 @@ The `aria-labelledby` attribute will be set to the header element, if one exists
|
|||
}
|
||||
|
||||
},
|
||||
|
||||
|
||||
attached: function() {
|
||||
this.style.display = 'none';
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue