LP#1086458: convert last-print information hash to JSON string before caching
authorGalen Charlton <gmc@esilibrary.com>
Mon, 14 Oct 2013 15:23:23 +0000 (08:23 -0700)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 14 Oct 2013 15:58:43 +0000 (08:58 -0700)
commitfa8ee8e98c006e471b17a2ce49a763ea1c90f262
tree632d1477078a1c1b6a5ff845812545f5a7fbdd14
parentd8278e3dfd7632f2a7b1165b9c6229297f7844de
LP#1086458: convert last-print information hash to JSON string before caching

By serializing the printing message and context information to a
JSON string before caching it, we avoid inadvertantly dragging in
things like Javascript execution contexts and possibly references
to objects created by the checkout interface.  This was contributing
to the staff client memory leaks observed during receipt printing.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/xul/staff_client/chrome/content/util/print.js