Changes

Jump to navigation Jump to search
m
no edit summary
Line 35: Line 35:  
       console.log("updating");
 
       console.log("updating");
 
       getBob.result.phone = '+312';  // => "Bob"
 
       getBob.result.phone = '+312';  // => "Bob"
    };
+
      store.put(getBob.result);
    getBob = index.get(["Smith", "Bob"]);
+
 
    getBob.onsuccess = function() {
+
      getBobAgain = index.get(["Smith", "Bob"]);
        console.log(getBob.result.phone);  // => "Bob"
+
          getBobAgain.onsuccess = function() {
    };
+
            console.log(getBobAgain.result.phone);  // => "Bob"
 +
          };
 +
 
 +
};
 
      
 
      
   −
    store.put(getBob.result);
+
 
    
     // Close the db when the transaction is done
 
     // Close the db when the transaction is done
530

edits

Navigation menu