Skip to content
This repository was archived by the owner on Sep 20, 2019. It is now read-only.

Commit acdd43a

Browse files
committed
release v0.7.18
2 parents c532ebd + fedfe02 commit acdd43a

15 files changed

+129
-115
lines changed

CustomElements.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Code distributed by Google as part of the polymer project is also
88
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
99
*/
10-
// @version 0.7.17
10+
// @version 0.7.18
1111
if (typeof WeakMap === "undefined") {
1212
(function() {
1313
var defineProperty = Object.defineProperty;
@@ -394,7 +394,8 @@ if (typeof WeakMap === "undefined") {
394394
Object.defineProperty(this, "defaultPrevented", {
395395
get: function() {
396396
return true;
397-
}
397+
},
398+
configurable: true
398399
});
399400
};
400401
}
@@ -678,24 +679,23 @@ window.CustomElements.addModule(function(scope) {
678679
return root;
679680
};
680681
}
681-
function upgradeAll(doc) {
682-
if (HTMLTemplateElement && HTMLTemplateElement.bootstrap) {
683-
HTMLTemplateElement.bootstrap(doc);
684-
}
685-
addedNode(doc);
686-
}
687682
scope.watchShadow = watchShadow;
688683
scope.upgradeDocumentTree = upgradeDocumentTree;
689684
scope.upgradeDocument = upgradeDocument;
690685
scope.upgradeSubtree = addedSubtree;
691-
scope.upgradeAll = upgradeAll;
686+
scope.upgradeAll = addedNode;
692687
scope.attached = attached;
693688
scope.takeRecords = takeRecords;
694689
});
695690

696691
window.CustomElements.addModule(function(scope) {
697692
var flags = scope.flags;
698693
function upgrade(node, isAttached) {
694+
if (node.localName === "template") {
695+
if (window.HTMLTemplateElement && HTMLTemplateElement.decorate) {
696+
HTMLTemplateElement.decorate(node);
697+
}
698+
}
699699
if (!node.__upgraded__ && node.nodeType === Node.ELEMENT_NODE) {
700700
var is = node.getAttribute("is");
701701
var definition = scope.getRegisteredDefinition(node.localName) || scope.getRegisteredDefinition(is);

CustomElements.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

HTMLImports.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Code distributed by Google as part of the polymer project is also
88
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
99
*/
10-
// @version 0.7.17
10+
// @version 0.7.18
1111
if (typeof WeakMap === "undefined") {
1212
(function() {
1313
var defineProperty = Object.defineProperty;
@@ -394,7 +394,8 @@ if (typeof WeakMap === "undefined") {
394394
Object.defineProperty(this, "defaultPrevented", {
395395
get: function() {
396396
return true;
397-
}
397+
},
398+
configurable: true
398399
});
399400
};
400401
}

HTMLImports.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

MutationObserver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Code distributed by Google as part of the polymer project is also
88
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
99
*/
10-
// @version 0.7.17
10+
// @version 0.7.18
1111
if (typeof WeakMap === "undefined") {
1212
(function() {
1313
var defineProperty = Object.defineProperty;

MutationObserver.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ShadowDOM.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Code distributed by Google as part of the polymer project is also
88
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
99
*/
10-
// @version 0.7.17
10+
// @version 0.7.18
1111
if (typeof WeakMap === "undefined") {
1212
(function() {
1313
var defineProperty = Object.defineProperty;
@@ -1131,7 +1131,8 @@ window.ShadowDOMPolyfill = {};
11311131
Object.defineProperty(this, "defaultPrevented", {
11321132
get: function() {
11331133
return true;
1134-
}
1134+
},
1135+
configurable: true
11351136
});
11361137
};
11371138
}

ShadowDOM.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "webcomponentsjs",
33
"main": "webcomponents.js",
4-
"version": "0.7.17",
4+
"version": "0.7.18",
55
"homepage": "http://webcomponents.org",
66
"authors": [
77
"The Polymer Authors"

0 commit comments

Comments
 (0)