From 9d63e2df486c4ba521af89f9b3bad0f44da318aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20V=C3=A1zquez=20Cajaraville?= Date: Sun, 15 May 2016 20:31:37 +0200 Subject: [PATCH] Change function fetch, now the data object is send as a new object: This way, the original data object never gets modify, in case needed at some other point. --- jsmart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsmart.js b/jsmart.js index 93be854..d36df07 100644 --- a/jsmart.js +++ b/jsmart.js @@ -3439,7 +3439,7 @@ function fetch(data) { var tpl = new jSmart(this); - return tpl.fetch(data); + return tpl.fetch(Object.create(data)); }; // AMD