diff options
| author | Igor Minar | 2011-04-07 12:48:14 -0700 |
|---|---|---|
| committer | Igor Minar | 2011-04-07 12:48:14 -0700 |
| commit | d517bcad5b4db5a1a60159df537e69b70702a381 (patch) | |
| tree | e04ab8b5e001f6108571a3191b7f4f3c1f5c66ab /src | |
| parent | e5419db6c75b7dd3b00f5a72ea17be71f4815ceb (diff) | |
| download | angular.js-d517bcad5b4db5a1a60159df537e69b70702a381.tar.bz2 | |
improve docs for angular.Object.copy
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 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 |
