From dd0416c46a814cdfcdba48c28067bdc705703e24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Fri, 9 Aug 2013 17:11:29 +0200 Subject: [PATCH] reload must not take the return value of the write/create call --- src/model.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/model.js b/src/model.js index c29cb8962f..83e5bdb3e1 100644 --- a/src/model.js +++ b/src/model.js @@ -333,7 +333,9 @@ context); } } - prm.done(this.reload.bind(this)); + prm.done(function() { + this.reload(); + }.bind(this)); // TODO group written // TODO parent return prm;