UNPKG

1.39 kBJavaScriptView Raw
1"use strict";
2/**
3 * @license
4 * Copyright (c) 2016 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 */
15Object.defineProperty(exports, "__esModule", { value: true });
16const polymer_element_1 = require("../polymer/polymer-element");
17/**
18 * The metadata for a Polymer behavior mixin.
19 */
20class ScannedBehavior extends polymer_element_1.ScannedPolymerElement {
21 resolve(document) {
22 return new Behavior(this, document);
23 }
24}
25exports.ScannedBehavior = ScannedBehavior;
26class Behavior extends polymer_element_1.PolymerElement {
27 constructor(scannedBehavior, document) {
28 super(scannedBehavior, document);
29 this.tagName = undefined;
30 this.kinds.delete('element');
31 this.kinds.delete('polymer-element');
32 this.kinds.add('behavior');
33 }
34 toString() {
35 return `<Behavior className=${this.className}>`;
36 }
37}
38exports.Behavior = Behavior;
39//# sourceMappingURL=behavior.js.map
\No newline at end of file