Remove LOAD_SUB_FRAME load flag.
[chromium-blink-merge.git] / third_party / polymer / components-chromium / paper-shadow / paper-shadow-extracted.js
blob5ba75bb67694a7c3c11b0a7595555806216fd040
2 Polymer('paper-shadow',{
4 publish: {
6 /**
7 * The z-depth of this shadow, from 0-5. Setting this property
8 * after element creation has no effect. Use `setZ()` instead.
10 * @attribute z
11 * @type number
12 * @default 1
14 z: 1,
16 /**
17 * Set this to true to animate the shadow when setting a new
18 * `z` value.
20 * @attribute animated
21 * @type boolean
22 * @default false
24 animated: false
28 /**
29 * Set the z-depth of the shadow. This should be used after element
30 * creation instead of setting the z property directly.
32 * @method setZ
33 * @param {Number} newZ
35 setZ: function(newZ) {
36 if (this.z !== newZ) {
37 this.$['shadow-bottom'].classList.remove('paper-shadow-bottom-z-' + this.z);
38 this.$['shadow-bottom'].classList.add('paper-shadow-bottom-z-' + newZ);
39 this.$['shadow-top'].classList.remove('paper-shadow-top-z-' + this.z);
40 this.$['shadow-top'].classList.add('paper-shadow-top-z-' + newZ);
41 this.z = newZ;
45 });