V8: Angular Divorce: equals (#7860)

* Bye bye angular.equals & use Utilities.equals which is still using angular.equals under the hood for now

* Update umbvariantcontenteditors.directive.js

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
This commit is contained in:
Warren Buckley
2021-01-19 22:27:28 +00:00
committed by GitHub
parent dcc832476f
commit 0822f0cbe5
5 changed files with 11 additions and 11 deletions

View File

@@ -171,7 +171,7 @@ angular.mock.$Browser.prototype = {
}
}
} else {
if (!angular.equals(this.cookieHash, this.lastCookieHash)) {
if (!Utilities.equals(this.cookieHash, this.lastCookieHash)) {
this.lastCookieHash = Utilities.copy(this.cookieHash);
this.cookieHash = Utilities.copy(this.cookieHash);
}
@@ -1379,7 +1379,7 @@ function MockHttpExpectation(method, url, data, headers) {
this.matchHeaders = function (h) {
if (Utilities.isUndefined(headers)) return true;
if (angular.isFunction(headers)) return headers(h);
return angular.equals(headers, h);
return Utilities.equals(headers, h);
};
this.matchData = function (d) {