aboutsummaryrefslogtreecommitdiffstats
path: root/src/Angular.js
diff options
context:
space:
mode:
authorMisko Hevery2010-04-29 17:28:33 -0700
committerMisko Hevery2010-04-29 17:28:33 -0700
commitc7913a4b7a3f5ffb0ea6bb1e636ac9d4a0e75c32 (patch)
tree5266b2b7b3f2a3d1dba3a652427e5ce4744bd477 /src/Angular.js
parent913729ee0120cc72e13b18d826c6da0fe2b98bf7 (diff)
downloadangular.js-c7913a4b7a3f5ffb0ea6bb1e636ac9d4a0e75c32.tar.bz2
added $xhr service with bulk and cache, hooked up $resource
Diffstat (limited to 'src/Angular.js')
-rw-r--r--src/Angular.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Angular.js b/src/Angular.js
index 8eef7275..3af21ced 100644
--- a/src/Angular.js
+++ b/src/Angular.js
@@ -231,12 +231,12 @@ function isLeafNode (node) {
function copy(source, destination){
if (!destination) {
- if (!source) {
- return source;
- } else if (isArray(source)) {
+ if (isArray(source)) {
return copy(source, []);
- } else {
+ } else if (isObject(source)) {
return copy(source, {});
+ } else {
+ return source;
}
} else {
if (isArray(source)) {