docs(decorator): edit decorator

This commit is contained in:
ruanyf
2018-04-15 21:31:19 +08:00
parent 53cf097ccb
commit caeb8706bd
+1 -1
View File
@@ -201,7 +201,7 @@ function log(target, name, descriptor) {
descriptor.value = function() {
console.log(`Calling ${name} with`, arguments);
return oldValue.apply(null, arguments);
return oldValue.apply(this, arguments);
};
return descriptor;