[Pkg-javascript-commits] [dojo] 02/08: Fixes #7865 - simple patch which allows the error callback to get the error object, as described in the dojo.data.api.Write api !strict

David Prévot taffit at moszumanska.debian.org
Mon May 11 20:12:08 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag 1.2.1
in repository dojo.

commit bc39839667685b84aadca8a83ec3ca5809028e77
Author: Nathan Toone <nathan at toonetown.com>
Date:   Fri Oct 17 13:38:23 2008 +0000

    Fixes #7865 - simple patch which allows the error callback to get the error object, as described in the dojo.data.api.Write api !strict
    
    git-svn-id: http://svn.dojotoolkit.org/src/branches/1.2/dojo@15475 560b804f-0ae3-0310-86f3-f6aa0a117693
---
 data/ItemFileWriteStore.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/data/ItemFileWriteStore.js b/data/ItemFileWriteStore.js
index acf6aeb..f751181 100644
--- a/data/ItemFileWriteStore.js
+++ b/data/ItemFileWriteStore.js
@@ -634,11 +634,11 @@ dojo.declare("dojo.data.ItemFileWriteStore", dojo.data.ItemFileReadStore, {
 				keywordArgs.onComplete.call(scope);
 			}
 		};
-		var saveFailedCallback = function(){
+		var saveFailedCallback = function(err){
 			self._saveInProgress = false;
 			if(keywordArgs && keywordArgs.onError){
 				var scope = keywordArgs.scope || dojo.global;
-				keywordArgs.onError.call(scope);
+				keywordArgs.onError.call(scope, err);
 			}
 		};
 		

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/dojo.git



More information about the Pkg-javascript-commits mailing list