1 | "use strict";
|
2 | var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3 | var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4 | if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5 | else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6 | return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7 | };
|
8 | Object.defineProperty(exports, "__esModule", { value: true });
|
9 | var aurelia_templating_1 = require("aurelia-templating");
|
10 | var aurelia_dependency_injection_1 = require("aurelia-dependency-injection");
|
11 | var aurelia_logging_1 = require("aurelia-logging");
|
12 | var aurelia_pal_1 = require("aurelia-pal");
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | var CompileSpy = (function () {
|
19 | |
20 |
|
21 |
|
22 |
|
23 |
|
24 | function CompileSpy(element, instruction) {
|
25 | aurelia_logging_1.getLogger('compile-spy').info(element.toString(), instruction);
|
26 | }
|
27 | CompileSpy = __decorate([
|
28 | aurelia_templating_1.customAttribute('compile-spy'),
|
29 | aurelia_dependency_injection_1.inject(aurelia_pal_1.DOM.Element, aurelia_templating_1.TargetInstruction)
|
30 | ], CompileSpy);
|
31 | return CompileSpy;
|
32 | }());
|
33 | exports.CompileSpy = CompileSpy;
|