Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Unified Diff: polymer_1.2.3/bower_components/webcomponentsjs/MutationObserver.js

Issue 1581713003: [third_party] add polymer 1.2.3 (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: 1.2.3 Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: polymer_1.2.3/bower_components/webcomponentsjs/MutationObserver.js
diff --git a/polymer_1.0.4/bower_components/webcomponentsjs/MutationObserver.js b/polymer_1.2.3/bower_components/webcomponentsjs/MutationObserver.js
similarity index 98%
copy from polymer_1.0.4/bower_components/webcomponentsjs/MutationObserver.js
copy to polymer_1.2.3/bower_components/webcomponentsjs/MutationObserver.js
index b8fb3cf47aeaa4ac153630fefb84370d42bef62c..3fc9de8c2282ef1a53a7d54948a0b25d28a03bf5 100644
--- a/polymer_1.0.4/bower_components/webcomponentsjs/MutationObserver.js
+++ b/polymer_1.2.3/bower_components/webcomponentsjs/MutationObserver.js
@@ -7,7 +7,7 @@
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
-// @version 0.7.5
+// @version 0.7.20
if (typeof WeakMap === "undefined") {
(function() {
var defineProperty = Object.defineProperty;
@@ -45,6 +45,9 @@ if (typeof WeakMap === "undefined") {
}
(function(global) {
+ if (global.JsMutationObserver) {
+ return;
+ }
var registrationsTable = new WeakMap();
var setImmediate;
if (/Trident|Edge/.test(navigator.userAgent)) {
@@ -340,5 +343,8 @@ if (typeof WeakMap === "undefined") {
}
};
global.JsMutationObserver = JsMutationObserver;
- if (!global.MutationObserver) global.MutationObserver = JsMutationObserver;
-})(this);
+ if (!global.MutationObserver) {
+ global.MutationObserver = JsMutationObserver;
+ JsMutationObserver._isPolyfilled = true;
+ }
+})(self);

Powered by Google App Engine
This is Rietveld 408576698