[Pkg-javascript-commits] [dojo] 10/27: Only set idProperty if identifier provided, fixes #17557

David Prévot taffit at moszumanska.debian.org
Sun Sep 14 16:23:05 UTC 2014


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

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

commit 12edacb6409ab5028a75001d5d9ba8c658516174
Author: Kris Zyp <kriszyp at gmail.com>
Date:   Mon Nov 25 06:38:53 2013 -0700

    Only set idProperty if identifier provided, fixes #17557
    
    (cherry picked from commit 5c86aadf89e576075dfb27898a7897112751edad)
---
 store/Memory.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/store/Memory.js b/store/Memory.js
index 6824d5f..5922d65 100644
--- a/store/Memory.js
+++ b/store/Memory.js
@@ -146,7 +146,7 @@ return declare("dojo.store.Memory", null, {
 		//		An array of objects to use as the source of data.
 		if(data.items){
 			// just for convenience with the data format IFRS expects
-			this.idProperty = data.identifier;
+			this.idProperty = data.identifier || this.idProperty;
 			data = this.data = data.items;
 		}else{
 			this.data = data;

-- 
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