skip loose mode for class methods when using decorators, addresses #1501

This commit is contained in:
Sebastian McKenzie 2015-05-11 17:40:36 +01:00
parent 539784b640
commit 8277a532f4

View File

@ -479,7 +479,7 @@ class ClassTransformer {
if (node.kind === "method") {
nameMethod.property(node, this.file, path ? path.get("value").scope : this.scope);
if (this.isLoose) {
if (this.isLoose && !node.decorators) {
// use assignments instead of define properties for loose classes
var classRef = this.classRef;