diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-11-19 23:00:04 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-11-19 23:00:04 -0800 |
commit | b27d8da1c798d2a4cfbf8d63585004ce77cf2c71 (patch) | |
tree | 638bc1aea154c1fe603f4c50322347bbe8d8a0a6 /src/utility.js | |
parent | a6e94183b9ed09f3c07ed921745bde179bca3f9c (diff) |
partial work to remove assigns of undefined in js optimizer
Diffstat (limited to 'src/utility.js')
-rw-r--r-- | src/utility.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utility.js b/src/utility.js index 53555aa5..91c4abe3 100644 --- a/src/utility.js +++ b/src/utility.js @@ -272,3 +272,7 @@ function copy(x) { return JSON.parse(JSON.stringify(x)); } +function jsonCompare(x, y) { + return JSON.stringify(x) == JSON.stringify(y); +} + |