| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent bd76e07 commit 60482cb
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -43,6 +43,11 @@ | |||
| 43 | 43 | ||
| 44 | 44 | // preferred method 2 | |
| 45 | 45 | // multiple arguments using JSON stringify | |
| 46 | + | ||
| 47 | + // this will only work correctly for primitive (and Array) arguments, | ||
| 48 | + // since the order in which properties of Objects are enumerated is undetermined | ||
| 49 | + // and can even change between enumerations. | ||
| 50 | + // (a JSON encoder that sorts the keys won't have this issue). | ||
| 46 | 51 | ||
| 47 | 52 | var myFunc = function () { | |
| 48 | 53 | var cachekey = JSON.stringify(Array.prototype.slice.call(arguments)), | |
| Back | FazBrowse Home | New Git URL |
0 commit comments