Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Retrieve object from store if its row has been unrendered

  • Loading branch information...
commit 0f834205d7f0e71c9a91ba532fff2033ea7446ec 1 parent 463545e
@kriszyp authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 _StoreMixin.js
View
5 _StoreMixin.js
@@ -106,9 +106,10 @@ function(declare, lang, Deferred, listen){
getFunc = function(id){
// returns a function to pass as a step in the promise chain,
// with the id variable closured
- return self.getBeforePut ?
+ var data;
+ return (self.getBeforePut || !(data = self.row(id).data)) ?
function(){ return store.get(id); } :
- function(){ return self.row(id).data; };
+ function(){ return data; };
};
// function called within loop to generate a function for putting an item
Please sign in to comment.
Something went wrong with that request. Please try again.