Merge branch '1189' of https://github.com/seanparmelee/jasmine into seanparmelee-1189

- Merges #1193 from @seanparmlee
- Fixes #1189
This commit is contained in:
Gregg Van Hove
2016-09-01 21:10:19 -07:00
3 changed files with 30 additions and 3 deletions

View File

@@ -53,7 +53,9 @@ getJasmineRequireObj().SpyRegistry = function(j$) {
};
} else {
restoreStrategy = function() {
delete obj[methodName];
if (!delete obj[methodName]) {
obj[methodName] = originalMethod;
}
};
}