| OLD | NEW |
| 1 /** | 1 /** |
| 2 * Copyright (c) 2014 The Polymer Project Authors. All rights reserved. | 2 * Copyright (c) 2014 The Polymer Project Authors. All rights reserved. |
| 3 * This code may only be used under the BSD style license found at http://polyme
r.github.io/LICENSE.txt | 3 * This code may only be used under the BSD style license found at http://polyme
r.github.io/LICENSE.txt |
| 4 * The complete set of authors may be found at http://polymer.github.io/AUTHORS.
txt | 4 * The complete set of authors may be found at http://polymer.github.io/AUTHORS.
txt |
| 5 * The complete set of contributors may be found at http://polymer.github.io/CON
TRIBUTORS.txt | 5 * The complete set of contributors may be found at http://polymer.github.io/CON
TRIBUTORS.txt |
| 6 * Code distributed by Google as part of the polymer project is also | 6 * Code distributed by Google as part of the polymer project is also |
| 7 * subject to an additional IP rights grant found at http://polymer.github.io/PA
TENTS.txt | 7 * subject to an additional IP rights grant found at http://polymer.github.io/PA
TENTS.txt |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 window.Platform = window.Platform || {}; | 10 window.Platform = window.Platform || {}; |
| (...skipping 5422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5433 | 5433 |
| 5434 // getDistributedNodes is added in ShadowRenderer | 5434 // getDistributedNodes is added in ShadowRenderer |
| 5435 }); | 5435 }); |
| 5436 | 5436 |
| 5437 if (OriginalHTMLContentElement) | 5437 if (OriginalHTMLContentElement) |
| 5438 registerWrapper(OriginalHTMLContentElement, HTMLContentElement); | 5438 registerWrapper(OriginalHTMLContentElement, HTMLContentElement); |
| 5439 | 5439 |
| 5440 scope.wrappers.HTMLContentElement = HTMLContentElement; | 5440 scope.wrappers.HTMLContentElement = HTMLContentElement; |
| 5441 })(window.ShadowDOMPolyfill); | 5441 })(window.ShadowDOMPolyfill); |
| 5442 | 5442 |
| 5443 /* |
| 5444 * Copyright 2014 The Polymer Authors. All rights reserved. |
| 5445 * Use of this source code is governed by a BSD-style |
| 5446 * license that can be found in the LICENSE file. |
| 5447 */ |
| 5448 |
| 5449 (function(scope) { |
| 5450 'use strict'; |
| 5451 |
| 5452 var HTMLElement = scope.wrappers.HTMLElement; |
| 5453 var mixin = scope.mixin; |
| 5454 var registerWrapper = scope.registerWrapper; |
| 5455 var wrapHTMLCollection = scope.wrapHTMLCollection; |
| 5456 var unwrap = scope.unwrap; |
| 5457 var wrap = scope.wrap; |
| 5458 |
| 5459 var OriginalHTMLFormElement = window.HTMLFormElement; |
| 5460 |
| 5461 function HTMLFormElement(node) { |
| 5462 HTMLElement.call(this, node); |
| 5463 } |
| 5464 HTMLFormElement.prototype = Object.create(HTMLElement.prototype); |
| 5465 mixin(HTMLFormElement.prototype, { |
| 5466 get elements() { |
| 5467 // Note: technically this should be an HTMLFormControlsCollection, but |
| 5468 // that inherits from HTMLCollection, so should be good enough. Spec: |
| 5469 // http://www.whatwg.org/specs/web-apps/current-work/multipage/common-dom-
interfaces.html#htmlformcontrolscollection |
| 5470 return wrapHTMLCollection(unwrap(this).elements); |
| 5471 } |
| 5472 }); |
| 5473 |
| 5474 registerWrapper(OriginalHTMLFormElement, HTMLFormElement, |
| 5475 document.createElement('form')); |
| 5476 |
| 5477 scope.wrappers.HTMLFormElement = HTMLFormElement; |
| 5478 })(window.ShadowDOMPolyfill); |
| 5479 |
| 5443 // Copyright 2013 The Polymer Authors. All rights reserved. | 5480 // Copyright 2013 The Polymer Authors. All rights reserved. |
| 5444 // Use of this source code is goverened by a BSD-style | 5481 // Use of this source code is goverened by a BSD-style |
| 5445 // license that can be found in the LICENSE file. | 5482 // license that can be found in the LICENSE file. |
| 5446 | 5483 |
| 5447 (function(scope) { | 5484 (function(scope) { |
| 5448 'use strict'; | 5485 'use strict'; |
| 5449 | 5486 |
| 5450 var HTMLElement = scope.wrappers.HTMLElement; | 5487 var HTMLElement = scope.wrappers.HTMLElement; |
| 5451 var registerWrapper = scope.registerWrapper; | 5488 var registerWrapper = scope.registerWrapper; |
| 5452 var unwrap = scope.unwrap; | 5489 var unwrap = scope.unwrap; |
| (...skipping 8703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14156 } | 14193 } |
| 14157 } | 14194 } |
| 14158 | 14195 |
| 14159 // exports | 14196 // exports |
| 14160 scope.flush = flush; | 14197 scope.flush = flush; |
| 14161 | 14198 |
| 14162 })(window.Platform); | 14199 })(window.Platform); |
| 14163 | 14200 |
| 14164 | 14201 |
| 14165 //# sourceMappingURL=platform.concat.js.map | 14202 //# sourceMappingURL=platform.concat.js.map |
| OLD | NEW |