Skip to content
This repository was archived by the owner on Jan 4, 2021. It is now read-only.

Commit bc53866

Browse files
committed
[UPDATE] Docs
1 parent 599ec45 commit bc53866

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+2900
-2240
lines changed

docs/components/iron-meta/.bower.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "iron-meta",
3-
"version": "2.0.4",
3+
"version": "2.0.5",
44
"keywords": [
55
"web-components",
66
"polymer"
@@ -46,11 +46,11 @@
4646
"webcomponentsjs": "^1.0.0"
4747
},
4848
"homepage": "https://github.com/PolymerElements/iron-meta",
49-
"_release": "2.0.4",
49+
"_release": "2.0.5",
5050
"_resolution": {
5151
"type": "version",
52-
"tag": "v2.0.4",
53-
"commit": "88d89fbcb45a8ae87986df686ed3f8659aa11b37"
52+
"tag": "v2.0.5",
53+
"commit": "730e0d736a5eefd7d9601e4916786ec5706fd5fa"
5454
},
5555
"_source": "https://github.com/PolymerElements/iron-meta.git",
5656
"_target": "1 - 2",

docs/components/iron-meta/bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "iron-meta",
3-
"version": "2.0.4",
3+
"version": "2.0.5",
44
"keywords": [
55
"web-components",
66
"polymer"

docs/components/iron-meta/iron-meta.html

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,23 +63,31 @@
6363
* value: *,
6464
* }=} options
6565
*/
66-
function IronMeta(options) {
66+
Polymer.IronMeta = function(options) {
67+
Polymer.IronMeta[' '](options);
68+
6769
this.type = (options && options.type) || 'default';
6870
this.key = options && options.key;
6971
if (options && 'value' in options) {
7072
this.value = options.value;
7173
}
72-
}
74+
};
7375

74-
IronMeta.types = {};
76+
// This function is used to convince Closure not to remove constructor calls
77+
// for instances that are not held anywhere. For example, when
78+
// `new Polymer.IronMeta({...})` is used only for the side effect of adding
79+
// a value.
80+
Polymer.IronMeta[' '] = function(){};
7581

76-
IronMeta.prototype = {
82+
Polymer.IronMeta.types = {};
83+
84+
Polymer.IronMeta.prototype = {
7785
get value() {
7886
var type = this.type;
7987
var key = this.key;
8088

8189
if (type && key) {
82-
return IronMeta.types[type] && IronMeta.types[type][key];
90+
return Polymer.IronMeta.types[type] && Polymer.IronMeta.types[type][key];
8391
}
8492
},
8593

@@ -88,7 +96,7 @@
8896
var key = this.key;
8997

9098
if (type && key) {
91-
type = IronMeta.types[type] = IronMeta.types[type] || {};
99+
type = Polymer.IronMeta.types[type] = Polymer.IronMeta.types[type] || {};
92100
if (value == null) {
93101
delete type[key];
94102
} else {
@@ -101,7 +109,7 @@
101109
var type = this.type;
102110

103111
if (type) {
104-
const items = IronMeta.types[this.type];
112+
var items = Polymer.IronMeta.types[this.type];
105113
if (!items) {
106114
return [];
107115
}
@@ -118,8 +126,6 @@
118126
}
119127
};
120128

121-
Polymer.IronMeta = IronMeta;
122-
123129
var metaDatas = Polymer.IronMeta.types;
124130

125131
Polymer({

docs/components/myscript-common-element/.bower.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@
4747
"paper-toggle-button": "^2.0.0",
4848
"paper-slider": "^2.0.2"
4949
},
50-
"_release": "58586781ad",
50+
"_release": "01c28b0058",
5151
"_resolution": {
5252
"type": "branch",
5353
"branch": "master",
54-
"commit": "58586781adfe07209da1533bb2f550a6f66a18ee"
54+
"commit": "01c28b0058388bc78368cdfd67cdeb9e066cfff4"
5555
},
5656
"_source": "https://github.com/MyScript/myscript-common-element.git",
5757
"_target": "master",

0 commit comments

Comments
 (0)