diff options
| author | Igor Minar | 2010-11-06 23:50:04 -0700 | 
|---|---|---|
| committer | Igor Minar | 2010-11-08 22:49:29 -0800 | 
| commit | 1a43f36e2395c77005fd14fafd43808548b111f2 (patch) | |
| tree | 456581194d95374b8654e4e0357fcf1f366c62c9 /src/JSON.js | |
| parent | 1c305dc67a73b8096132c709ee1a2f83879aab98 (diff) | |
| download | angular.js-1a43f36e2395c77005fd14fafd43808548b111f2.tar.bz2 | |
Add isDate method + fix old code
Diffstat (limited to 'src/JSON.js')
| -rw-r--r-- | src/JSON.js | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/src/JSON.js b/src/JSON.js index de718527..9fca3bcb 100644 --- a/src/JSON.js +++ b/src/JSON.js @@ -72,7 +72,7 @@ function toJsonArray(buf, obj, pretty, stack) {          sep = true;        }        buf.push("]"); -    } else if (obj instanceof Date) { +    } else if (isDate(obj)) {        buf.push(angular['String']['quoteUnicode'](angular['Date']['toString'](obj)));      } else {        buf.push("{");  | 
