Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: third_party/polymer/v1_0/components-chromium/paper-tabs/paper-tab-extracted.js

Issue 1336623003: [MD settings] updating polymer to 1.1.13 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: changed Polymer.IronCheckedElementBehavior name Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 Polymer({ 1 Polymer({
2 2
3 is: 'paper-tab', 3 is: 'paper-tab',
4 4
5 behaviors: [ 5 behaviors: [
6 Polymer.IronControlState 6 Polymer.IronControlState,
7 Polymer.IronButtonState
7 ], 8 ],
8 9
9 properties: { 10 properties: {
10 11
11 /** 12 /**
12 * If true, ink ripple effect is disabled. 13 * If true, ink ripple effect is disabled.
13 * 14 *
14 * @attribute noink 15 * @attribute noink
15 */ 16 */
16 noink: { 17 noink: {
17 type: Boolean, 18 type: Boolean,
18 value: false 19 value: false
19 } 20 }
20 21
21 }, 22 },
22 23
23 hostAttributes: { 24 hostAttributes: {
24 role: 'tab' 25 role: 'tab'
25 }, 26 },
26 27
27 listeners: { 28 listeners: {
28 down: '_onDown' 29 down: '_updateNoink'
30 },
31
32 attached: function() {
33 this._updateNoink();
29 }, 34 },
30 35
31 get _parentNoink () { 36 get _parentNoink () {
32 var parent = Polymer.dom(this).parentNode; 37 var parent = Polymer.dom(this).parentNode;
33 return !!parent && !!parent.noink; 38 return !!parent && !!parent.noink;
34 }, 39 },
35 40
36 _onDown: function(e) { 41 _updateNoink: function() {
37 this.noink = !!this.noink || !!this._parentNoink; 42 this.noink = !!this.noink || !!this._parentNoink;
38 } 43 }
39 }); 44 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698