diff options
| author | thorn0 | 2013-10-24 14:48:38 +0300 | 
|---|---|---|
| committer | Pete Bacon Darwin | 2013-10-26 18:57:59 +0100 | 
| commit | 9f0d4085e750c96cd65a34259f2160c4aa6a3794 (patch) | |
| tree | 13b2061987cae647c35841a8095cfc2bf6c5e3ff /src | |
| parent | af34a4a2c081abd68ad568149561c91d58f746c8 (diff) | |
| download | angular.js-9f0d4085e750c96cd65a34259f2160c4aa6a3794.tar.bz2 | |
docs(Angular.js): angular.equals calls itself recursively on objects
Closes #4622
Diffstat (limited to 'src')
| -rw-r--r-- | src/Angular.js | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/src/Angular.js b/src/Angular.js index 7a6dc5ec..0cdeab3f 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -792,7 +792,8 @@ function shallowCopy(src, dst) {   * Two objects or values are considered equivalent if at least one of the following is true:   *   * * Both objects or values pass `===` comparison. - * * Both objects or values are of the same type and all of their properties pass `===` comparison. + * * Both objects or values are of the same type and all of their properties are equal by + *   comparing them with `angular.equals`.   * * Both values are NaN. (In JavaScript, NaN == NaN => false. But we consider two NaN as equal)   * * Both values represent the same regular expression (In JavasScript,   *   /abc/ == /abc/ => false. But we consider two regular expressions as equal when their textual | 
