| Index: third_party/polymer/v1_0/components-chromium/iron-behaviors/iron-button-state-extracted.js
|
| diff --git a/third_party/polymer/v1_0/components-chromium/iron-behaviors/iron-button-state-extracted.js b/third_party/polymer/v1_0/components-chromium/iron-behaviors/iron-button-state-extracted.js
|
| index c1ea1ed6128a5b6393712c339a142187a4867782..1b9a5ad91f5fa3dc88cbc953fcd55fa712e78683 100644
|
| --- a/third_party/polymer/v1_0/components-chromium/iron-behaviors/iron-button-state-extracted.js
|
| +++ b/third_party/polymer/v1_0/components-chromium/iron-behaviors/iron-button-state-extracted.js
|
| @@ -1,6 +1,4 @@
|
| -
|
| -
|
| - /**
|
| +/**
|
| * @demo demo/index.html
|
| * @polymerBehavior Polymer.IronButtonState
|
| */
|
| @@ -111,33 +109,7 @@
|
| }
|
| },
|
|
|
| - _eventSourceIsPrimaryInput: function(event) {
|
| - event = event.detail.sourceEvent || event;
|
| -
|
| - // Always true for non-mouse events....
|
| - if (!this._mouseEventRe.test(event.type)) {
|
| - return true;
|
| - }
|
| -
|
| - // http://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons
|
| - if ('buttons' in event) {
|
| - return event.buttons === 1;
|
| - }
|
| -
|
| - // http://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/which
|
| - if (typeof event.which === 'number') {
|
| - return event.which < 2;
|
| - }
|
| -
|
| - // http://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button
|
| - return event.button < 1;
|
| - },
|
| -
|
| _downHandler: function(event) {
|
| - if (!this._eventSourceIsPrimaryInput(event)) {
|
| - return;
|
| - }
|
| -
|
| this._setPointerDown(true);
|
| this._setPressed(true);
|
| this._setReceivedFocusFromKeyboard(false);
|
| @@ -214,5 +186,4 @@
|
| Polymer.IronButtonState = [
|
| Polymer.IronA11yKeysBehavior,
|
| Polymer.IronButtonStateImpl
|
| - ];
|
| -
|
| + ];
|
|
|