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

Side by Side Diff: packages/web_components/lib/ShadowDOM.js

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 4 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 unified diff | Download patch
« no previous file with comments | « packages/web_components/lib/README.md ('k') | packages/web_components/lib/ShadowDOM.min.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /** 1 /**
2 * @license 2 * @license
3 * Copyright (c) 2014 The Polymer Project Authors. All rights reserved. 3 * Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
4 * This code may only be used under the BSD style license found at http://polyme r.github.io/LICENSE.txt 4 * This code may only be used under the BSD style license found at http://polyme r.github.io/LICENSE.txt
5 * The complete set of authors may be found at http://polymer.github.io/AUTHORS. txt 5 * The complete set of authors may be found at http://polymer.github.io/AUTHORS. txt
6 * The complete set of contributors may be found at http://polymer.github.io/CON TRIBUTORS.txt 6 * The complete set of contributors may be found at http://polymer.github.io/CON TRIBUTORS.txt
7 * Code distributed by Google as part of the polymer project is also 7 * Code distributed by Google as part of the polymer project is also
8 * subject to an additional IP rights grant found at http://polymer.github.io/PA TENTS.txt 8 * subject to an additional IP rights grant found at http://polymer.github.io/PA TENTS.txt
9 */ 9 */
10 // @version 0.7.21 10 // @version 0.7.23
11 if (typeof WeakMap === "undefined") { 11 if (typeof WeakMap === "undefined") {
12 (function() { 12 (function() {
13 var defineProperty = Object.defineProperty; 13 var defineProperty = Object.defineProperty;
14 var counter = Date.now() % 1e9; 14 var counter = Date.now() % 1e9;
15 var WeakMap = function() { 15 var WeakMap = function() {
16 this.name = "__st" + (Math.random() * 1e9 >>> 0) + (counter++ + "__"); 16 this.name = "__st" + (Math.random() * 1e9 >>> 0) + (counter++ + "__");
17 }; 17 };
18 WeakMap.prototype = { 18 WeakMap.prototype = {
19 set: function(key, value) { 19 set: function(key, value) {
20 var entry = key[this.name]; 20 var entry = key[this.name];
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 this.__impl4cf1e782hg__[name] = v; 158 this.__impl4cf1e782hg__[name] = v;
159 }; 159 };
160 } 160 }
161 function getMethod(name) { 161 function getMethod(name) {
162 return hasEval && isIdentifierName(name) ? new Function("return this.__impl4 cf1e782hg__." + name + ".apply(this.__impl4cf1e782hg__, arguments)") : function( ) { 162 return hasEval && isIdentifierName(name) ? new Function("return this.__impl4 cf1e782hg__." + name + ".apply(this.__impl4cf1e782hg__, arguments)") : function( ) {
163 return this.__impl4cf1e782hg__[name].apply(this.__impl4cf1e782hg__, argume nts); 163 return this.__impl4cf1e782hg__[name].apply(this.__impl4cf1e782hg__, argume nts);
164 }; 164 };
165 } 165 }
166 function getDescriptor(source, name) { 166 function getDescriptor(source, name) {
167 try { 167 try {
168 if (source === window && name === "showModalDialog") {
169 return dummyDescriptor;
170 }
168 return Object.getOwnPropertyDescriptor(source, name); 171 return Object.getOwnPropertyDescriptor(source, name);
169 } catch (ex) { 172 } catch (ex) {
170 return dummyDescriptor; 173 return dummyDescriptor;
171 } 174 }
172 } 175 }
173 var isBrokenSafari = function() { 176 var isBrokenSafari = function() {
174 var descr = Object.getOwnPropertyDescriptor(Node.prototype, "nodeType"); 177 var descr = Object.getOwnPropertyDescriptor(Node.prototype, "nodeType");
175 return descr && !descr.get && !descr.set; 178 return descr && !descr.get && !descr.set;
176 }(); 179 }();
177 function installProperty(source, target, allowMethod, opt_blacklist) { 180 function installProperty(source, target, allowMethod, opt_blacklist) {
(...skipping 4306 matching lines...) Expand 10 before | Expand all | Expand 10 after
4484 if (!nativeConstructor) return; 4487 if (!nativeConstructor) return;
4485 var element = document.createElement(tagName); 4488 var element = document.createElement(tagName);
4486 var wrapperConstructor = element.constructor; 4489 var wrapperConstructor = element.constructor;
4487 window[nativeConstructorName] = wrapperConstructor; 4490 window[nativeConstructorName] = wrapperConstructor;
4488 } 4491 }
4489 Object.keys(elements).forEach(overrideConstructor); 4492 Object.keys(elements).forEach(overrideConstructor);
4490 Object.getOwnPropertyNames(scope.wrappers).forEach(function(name) { 4493 Object.getOwnPropertyNames(scope.wrappers).forEach(function(name) {
4491 window[name] = scope.wrappers[name]; 4494 window[name] = scope.wrappers[name];
4492 }); 4495 });
4493 })(window.ShadowDOMPolyfill); 4496 })(window.ShadowDOMPolyfill);
OLDNEW
« no previous file with comments | « packages/web_components/lib/README.md ('k') | packages/web_components/lib/ShadowDOM.min.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698