From d5dd5494e3e35a55c4bf8050f27e37fdc7c0d9a4 Mon Sep 17 00:00:00 2001 From: Tristan Cavelier <tristan.cavelier@tiolive.com> Date: Mon, 7 Jan 2013 11:42:09 +0100 Subject: [PATCH] Add "clone" method to jiotests.js --- test/jiotests.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/jiotests.js b/test/jiotests.js index 7cc04ca..c68e668 100644 --- a/test/jiotests.js +++ b/test/jiotests.js @@ -18,6 +18,9 @@ contains = function (array,content) { } return false; }, +clone = function (obj) { + return JSON.parse(JSON.stringify(obj)); +}, // localStorage wrapper localstorage = { clear: function () { -- 2.30.9