Use prototype for spy strategy for better memory management
- Also convert `identity` to a property from a method
This commit is contained in:
@@ -40,7 +40,7 @@ getJasmineRequireObj().Spy = function (j$) {
|
||||
};
|
||||
|
||||
callTracker.track(callData);
|
||||
var returnValue = spyStrategy.exec.apply(this, arguments);
|
||||
var returnValue = spyStrategy.exec(this, arguments);
|
||||
callData.returnValue = returnValue;
|
||||
|
||||
return returnValue;
|
||||
|
||||
Reference in New Issue
Block a user