aboutsummaryrefslogtreecommitdiffstats
path: root/src/Angular.js
diff options
context:
space:
mode:
authorIgor Minar2011-04-07 12:48:14 -0700
committerIgor Minar2011-04-07 12:48:14 -0700
commitd517bcad5b4db5a1a60159df537e69b70702a381 (patch)
treee04ab8b5e001f6108571a3191b7f4f3c1f5c66ab /src/Angular.js
parente5419db6c75b7dd3b00f5a72ea17be71f4815ceb (diff)
downloadangular.js-d517bcad5b4db5a1a60159df537e69b70702a381.tar.bz2
improve docs for angular.Object.copy
Diffstat (limited to 'src/Angular.js')
-rw-r--r--src/Angular.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Angular.js b/src/Angular.js
index 4849edf3..2f89fbbd 100644
--- a/src/Angular.js
+++ b/src/Angular.js
@@ -547,7 +547,8 @@ function isLeafNode (node) {
*
* @param {*} source The source to be used to make a copy.
* Can be any type including primitives, `null` and `undefined`.
- * @param {(Object|Array)=} destination Optional destination into which the source is copied.
+ * @param {(Object|Array)=} destination Optional destination into which the source is copied. If
+ * provided, must be of the same type as `source`.
* @returns {*} The copy or updated `destination` if `destination` was specified.
*
* @example