Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Enable properties of the iron-meta without connecting it to the document. #72

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 21 additions & 3 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
"webcomponentsjs": "webcomponents/webcomponentsjs#^1.0.0",
"web-component-tester": "^6.0.0"
},
"resolutions": {
"webcomponentsjs": "^1.0.0"
},
"variants": {
"1.x": {
"dependencies": {
Expand All @@ -47,9 +50,24 @@
"resolutions": {
"webcomponentsjs": "^0.7"
}
},
"polymer-1.x_iron-meta-2.x": {
"dependencies": {
"polymer": "Polymer/polymer#^1.9",
"iron-meta": "polymerelements/iron-meta#^2.0.0"
},
"devDependencies": {
"paper-styles": "polymerelements/paper-styles#^1.0.2",
"iron-component-page": "polymerelements/iron-component-page#^1.0.0",
"iron-icon": "polymerelements/iron-icon#^1.0.0",
"promise-polyfill": "polymerlabs/promise-polyfill#^1.0.0",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0",
"web-component-tester": "^4.0.0"
},
"resolutions": {
"iron-meta": "^2.0.0",
"webcomponentsjs": "^0.7"
}
}
},
"resolutions": {
"webcomponentsjs": "^1.0.0"
}
}
8 changes: 7 additions & 1 deletion iron-iconset-svg.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,13 @@
},

created: function() {
this._meta = new Polymer.IronMeta({type: 'iconset', key: null, value: null});
var meta = this._meta = document.createElement('iron-meta');
if (typeof this._meta._enableProperties === "function") {
this._meta._enableProperties();
}
this._meta.type = 'iconset';
this._meta.key = null;
this._meta.value = null;
},

attached: function() {
Expand Down