fixing reference issue in angular-mocks.js

This commit is contained in:
Igor Minar 2010-10-13 15:23:11 -07:00
parent 80c64b48f3
commit 1cc85a77cf

View file

@ -150,8 +150,8 @@ MockBrowser.prototype = {
}
} else {
if (!angular.equals(this.cookieHash, this.lastCookieHash)) {
this.lastCookieHash = copy(this.cookieHash);
this.cookieHash = copy(this.cookieHash);
this.lastCookieHash = angular.copy(this.cookieHash);
this.cookieHash = angular.copy(this.cookieHash);
}
return this.cookieHash;
}