aboutsummaryrefslogtreecommitdiffstats
path: root/src/Angular.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/Angular.js')
-rw-r--r--src/Angular.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Angular.js b/src/Angular.js
index 2a9fb556..c14c6ea0 100644
--- a/src/Angular.js
+++ b/src/Angular.js
@@ -597,6 +597,7 @@ function copy(source, destination){
}
}
} else {
+ if (source === destination) throw Error("Can't copy equivalent objects or arrays");
if (isArray(source)) {
while(destination.length) {
destination.pop();