Changes

Jump to navigation Jump to search
m
no edit summary
Line 38: Line 38:  
function recordUpdate(store, record, field, value){
 
function recordUpdate(store, record, field, value){
   −
     var getRecord = index.get(record);
+
     var getRecord = store.get(record);
    
     getRecord.onsuccess = function() {
 
     getRecord.onsuccess = function() {
Line 49: Line 49:     
function checkRecord(store, record, field) {
 
function checkRecord(store, record, field) {
       checkRecord = index.get(record);
+
       checkRecord = store.get(record);
 
       checkRecord.onsuccess = function() {
 
       checkRecord.onsuccess = function() {
 
         console.log(getRecordAgain.result.phone);  // => "Bob"
 
         console.log(getRecordAgain.result.phone);  // => "Bob"
 
       };
 
       };
 
}
 
}
530

edits

Navigation menu