add property method assignment wrapper generator template

This commit is contained in:
Sebastian McKenzie 2015-02-08 20:21:45 +11:00
parent 481ea12999
commit 799445c745

View File

@ -0,0 +1,11 @@
(function (FUNCTION_KEY) {
var WRAPPER_KEY = function* FUNCTION_ID() {
return yield* FUNCTION_KEY.apply(this, arguments);
};
WRAPPER_KEY.toString = function () {
return FUNCTION_KEY.toString();
};
return WRAPPER_KEY;
})(FUNCTION)