(methodName)
| 80 | } |
| 81 | |
| 82 | var calledMethod = function (methodName) { |
| 83 | // Stub out the original method if it's not decorating an actual method |
| 84 | var originalMethod = function () {}; |
| 85 | |
| 86 | if (methodName in DecoratedClass.prototype) { |
| 87 | originalMethod = DecoratedClass.prototype[methodName]; |
| 88 | } |
| 89 | |
| 90 | var decoratedMethod = DecoratorClass.prototype[methodName]; |
| 91 | |
| 92 | return function () { |
| 93 | var unshift = Array.prototype.unshift; |
| 94 | |
| 95 | unshift.call(arguments, originalMethod); |
| 96 | |
| 97 | return decoratedMethod.apply(this, arguments); |
| 98 | }; |
| 99 | }; |
| 100 | |
| 101 | for (var d = 0; d < decoratedMethods.length; d++) { |
| 102 | var decoratedMethod = decoratedMethods[d]; |
no outgoing calls
no test coverage detected
searching dependent graphs…