Add an exponential backoff to rechecking the app list doodle.
[chromium-blink-merge.git] / third_party / polymer / components-chromium / paper-dropdown-menu / paper-dropdown-menu-extracted.js
blobc74966ad7eeedcb8afa677824df901f20042da9c
3 (function() {
5   var p = {
7     publish: {
9       /**
10        * A label for the control. The label is displayed if no item is selected.
11        *
12        * @attribute label
13        * @type string
14        * @default 'Select an item'
15        */
16       label: 'Select an item',
18       /**
19        * The icon to display when the drop-down is opened.
20        *
21        * @attribute openedIcon
22        * @type string
23        * @default 'arrow-drop-up'
24        */
25       openedIcon: 'arrow-drop-up',
27       /**
28        * The icon to display when the drop-down is closed.
29        *
30        * @attribute closedIcon
31        * @type string
32        * @default 'arrow-drop-down'
33        */
34       closedIcon: 'arrow-drop-down'
36     },
38     selectedItemLabel: '',
40     overlayListeners: {
41       'core-overlay-open': 'openAction',
42       'core-activate': 'activateAction',
43       'core-select': 'selectAction'
44     },
46     activateAction: function(e) {
47       this.opened = false;
48     },
50     selectAction: function(e) {
51       var detail = e.detail;
52       if (detail.isSelected) {
53         this.selectedItemLabel = detail.item.label || detail.item.textContent;
54       } else {
55         this.selectedItemLabel = '';
56       }
57     }
59   };
61   Polymer.mixin2(p, Polymer.CoreFocusable);
62   Polymer('paper-dropdown-menu',p);
64 })();