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

Commit d90a442

Browse files
committed
release v0.7.15
2 parents 48194e6 + 185a01c commit d90a442

15 files changed

+105
-76
lines changed

CustomElements.js

Lines changed: 13 additions & 6 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.14
10+
// @version 0.7.15
1111
if (typeof WeakMap === "undefined") {
1212
(function() {
1313
var defineProperty = Object.defineProperty;
@@ -45,6 +45,9 @@ if (typeof WeakMap === "undefined") {
4545
}
4646

4747
(function(global) {
48+
if (global.JsMutationObserver) {
49+
return;
50+
}
4851
var registrationsTable = new WeakMap();
4952
var setImmediate;
5053
if (/Trident|Edge/.test(navigator.userAgent)) {
@@ -340,7 +343,10 @@ if (typeof WeakMap === "undefined") {
340343
}
341344
};
342345
global.JsMutationObserver = JsMutationObserver;
343-
if (!global.MutationObserver) global.MutationObserver = JsMutationObserver;
346+
if (!global.MutationObserver) {
347+
global.MutationObserver = JsMutationObserver;
348+
JsMutationObserver._isPolyfilled = true;
349+
}
344350
})(self);
345351

346352
window.CustomElements = window.CustomElements || {
@@ -442,8 +448,9 @@ window.CustomElements.addModule(function(scope) {
442448
}
443449
});
444450
}
445-
var hasPolyfillMutations = !window.MutationObserver || window.MutationObserver === window.JsMutationObserver;
446-
scope.hasPolyfillMutations = hasPolyfillMutations;
451+
var hasThrottledAttached = window.MutationObserver._isPolyfilled && flags["throttle-attached"];
452+
scope.hasPolyfillMutations = hasThrottledAttached;
453+
scope.hasThrottledAttached = hasThrottledAttached;
447454
var isPendingMutations = false;
448455
var pendingMutations = [];
449456
function deferMutation(fn) {
@@ -462,7 +469,7 @@ window.CustomElements.addModule(function(scope) {
462469
pendingMutations = [];
463470
}
464471
function attached(element) {
465-
if (hasPolyfillMutations) {
472+
if (hasThrottledAttached) {
466473
deferMutation(function() {
467474
_attached(element);
468475
});
@@ -485,7 +492,7 @@ window.CustomElements.addModule(function(scope) {
485492
});
486493
}
487494
function detached(element) {
488-
if (hasPolyfillMutations) {
495+
if (hasThrottledAttached) {
489496
deferMutation(function() {
490497
_detached(element);
491498
});

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: 8 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.14
10+
// @version 0.7.15
1111
if (typeof WeakMap === "undefined") {
1212
(function() {
1313
var defineProperty = Object.defineProperty;
@@ -45,6 +45,9 @@ if (typeof WeakMap === "undefined") {
4545
}
4646

4747
(function(global) {
48+
if (global.JsMutationObserver) {
49+
return;
50+
}
4851
var registrationsTable = new WeakMap();
4952
var setImmediate;
5053
if (/Trident|Edge/.test(navigator.userAgent)) {
@@ -340,7 +343,10 @@ if (typeof WeakMap === "undefined") {
340343
}
341344
};
342345
global.JsMutationObserver = JsMutationObserver;
343-
if (!global.MutationObserver) global.MutationObserver = JsMutationObserver;
346+
if (!global.MutationObserver) {
347+
global.MutationObserver = JsMutationObserver;
348+
JsMutationObserver._isPolyfilled = true;
349+
}
344350
})(self);
345351

346352
window.HTMLImports = window.HTMLImports || {

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: 8 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.14
10+
// @version 0.7.15
1111
if (typeof WeakMap === "undefined") {
1212
(function() {
1313
var defineProperty = Object.defineProperty;
@@ -45,6 +45,9 @@ if (typeof WeakMap === "undefined") {
4545
}
4646

4747
(function(global) {
48+
if (global.JsMutationObserver) {
49+
return;
50+
}
4851
var registrationsTable = new WeakMap();
4952
var setImmediate;
5053
if (/Trident|Edge/.test(navigator.userAgent)) {
@@ -340,5 +343,8 @@ if (typeof WeakMap === "undefined") {
340343
}
341344
};
342345
global.JsMutationObserver = JsMutationObserver;
343-
if (!global.MutationObserver) global.MutationObserver = JsMutationObserver;
346+
if (!global.MutationObserver) {
347+
global.MutationObserver = JsMutationObserver;
348+
JsMutationObserver._isPolyfilled = true;
349+
}
344350
})(self);

MutationObserver.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.

ShadowDOM.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.14
10+
// @version 0.7.15
1111
if (typeof WeakMap === "undefined") {
1212
(function() {
1313
var defineProperty = Object.defineProperty;

ShadowDOM.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.

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.14",
4+
"version": "0.7.15",
55
"homepage": "http://webcomponents.org",
66
"authors": [
77
"The Polymer Authors"

build.log

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
BUILD LOG
22
---------
3-
Build Time: 2015-09-28T16:50:31-0700
3+
Build Time: 2015-10-16T14:18:33-0700
44

55
NODEJS INFORMATION
66
==================
7-
nodejs: v4.1.1
7+
nodejs: v4.2.0
88
gulp: 3.9.0
99
gulp-audit: 1.0.0
1010
gulp-concat: 2.6.0
1111
gulp-header: 1.7.1
12-
gulp-uglify: 1.4.1
12+
gulp-uglify: 1.4.2
1313
run-sequence: 1.1.4
14-
web-component-tester: 3.3.22
14+
web-component-tester: 3.3.26
1515

1616
REPO REVISIONS
1717
==============
18-
webcomponentsjs: c469b0002fa265416c83d5c8363071705e345a43
18+
webcomponentsjs: 185a01c1e6c9941e8d568d321eaec242e5ddd229
1919

2020
BUILD HASHES
2121
============
22-
CustomElements.js: 0d46b5c2bb7c92b6285d574205ca65e49def0617
23-
CustomElements.min.js: 2de71b634cd1545c401981c68fc31f0a12dd5f82
24-
HTMLImports.js: 0ddc177cadf99dd47b36bd74296f9d23dc566f25
25-
HTMLImports.min.js: 43d3866825148a8d0509da06a1e55550762255a9
26-
MutationObserver.js: 54ad1e3273edc525d1e4e0b75c42e25af7a0fb20
27-
MutationObserver.min.js: 36c22670e654ace2e7440c2dc4b012802080424b
28-
ShadowDOM.js: 089f8e6ea35f4365a2bece6481308d2002975e51
29-
ShadowDOM.min.js: 9d044a4e4221245adf257b229f9c67968f95f955
30-
webcomponents-lite.js: 8c326ce2b8e40aa4aefe7469f7cf8587c2c625da
31-
webcomponents-lite.min.js: ce8cf899652990697eb80703ebacf0ae997f7361
32-
webcomponents.js: fd409f4fab68b8bcc27a6a54e2ec16555a5eaa47
33-
webcomponents.min.js: efcdb4322c84f68f8c9e9cfc359505c263814051
22+
CustomElements.js: 943d9f48ad71b444a2eff5c995081b5364777a5f
23+
CustomElements.min.js: e11be05c876cc665b51dc0f693c200b68c172cd7
24+
HTMLImports.js: d65caa6ed3b4aff6640da7b1c00ad2661a8e2f79
25+
HTMLImports.min.js: bb01992d2b0889613f7c64bb89745ee64b819106
26+
MutationObserver.js: 92f7182e2491f59108795b1d4fdec0cc10937f40
27+
MutationObserver.min.js: e563d884955f03335a7ad928497561bdaef7c3a4
28+
ShadowDOM.js: fb8c9b07450dd52a6f63119d1236d02da67e5f9b
29+
ShadowDOM.min.js: 8f463e01093c9f4f272c465f1a67aaa98e12f11e
30+
webcomponents-lite.js: de3ae0944d938a3f604c024d41f42e75284c7a78
31+
webcomponents-lite.min.js: b45f7a55ae166f10da35759ef1c8a08164cec639
32+
webcomponents.js: d0c9136405a15ad263eed2a2df4b7179ef8dd0ba
33+
webcomponents.min.js: 73f28593e35232c67e31bacbf612b168e1f24e1f

0 commit comments

Comments
 (0)