Update to use JSON.{parse,stringify}

This commit is contained in:
Tom Robinson authored and Francisco Ryan Tolmasky I committed 2009-06-13 11:42:22 -07:00
1 parent 774ea99319
commit 787e0c8afd
4 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -491,7 +491,7 @@ var CPColorPanelSwatchesCookie = "CPColorPanelSwatchesCookie";
var future = new Date();
future.setYear(2019);
[_swatchCookie setValue: CPJSObjectCreateJSON(result) expires:future domain: nil];
[_swatchCookie setValue: JSON.stringify(result) expires:future domain: nil];
}
- (void)setColorPanel:(CPColorPanel)panel