-
-
Save tobek/90c133c34ddef49f8308d66ffded84ab to your computer and use it in GitHub Desktop.
Typescript emitted decorator metadata issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | |
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | |
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | |
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; | |
return c > 3 && r && Object.defineProperty(target, key, r), r; | |
}; | |
var __metadata = (this && this.__metadata) || function (k, v) { | |
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | |
}; | |
var core_1 = require("@angular/core"); | |
var TouchTest = (function () { | |
function TouchTest() { | |
} | |
TouchTest.prototype.onTouchend = function (event) { | |
console.log(event); | |
}; | |
return TouchTest; | |
}()); | |
__decorate([ | |
core_1.HostListener('touchend', ['$event']), | |
__metadata("design:type", Function), | |
__metadata("design:paramtypes", [TouchEvent]), | |
__metadata("design:returntype", void 0) | |
], TouchTest.prototype, "onTouchend"); | |
TouchTest = __decorate([ | |
core_1.Directive({ | |
selector: '[touchTest]' | |
}), | |
__metadata("design:paramtypes", []) | |
], TouchTest); | |
exports.TouchTest = TouchTest; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment