1 | ;
|
2 | /**
|
3 | * @license
|
4 | * Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
5 | * This code may only be used under the BSD style license found at
|
6 | * http://polymer.github.io/LICENSE.txt
|
7 | * The complete set of authors may be found at
|
8 | * http://polymer.github.io/AUTHORS.txt
|
9 | * The complete set of contributors may be found at
|
10 | * http://polymer.github.io/CONTRIBUTORS.txt
|
11 | * Code distributed by Google as part of the polymer project is also
|
12 | * subject to an additional IP rights grant found at
|
13 | * http://polymer.github.io/PATENTS.txt
|
14 | */
|
15 | Object.defineProperty(exports, "__esModule", { value: true });
|
16 | const element_base_1 = require("./element-base");
|
17 | class ScannedElement extends element_base_1.ScannedElementBase {
|
18 | get name() {
|
19 | return this.className;
|
20 | }
|
21 | resolve(document) {
|
22 | return new Element(this, document);
|
23 | }
|
24 | }
|
25 | exports.ScannedElement = ScannedElement;
|
26 | class Element extends element_base_1.ElementBase {
|
27 | constructor(init, document) {
|
28 | super(init, document);
|
29 | this.tagName = init.tagName;
|
30 | if (this.tagName) {
|
31 | this.identifiers.add(this.tagName);
|
32 | }
|
33 | this.kinds.add('element');
|
34 | this.extends = init.extends;
|
35 | }
|
36 | }
|
37 | exports.Element = Element;
|
38 | //# sourceMappingURL=element.js.map |
\ | No newline at end of file |