From 0bb64138bf62ae8b58c9fd2fb949d40b49945894 Mon Sep 17 00:00:00 2001 From: Lilia Date: Tue, 27 Jan 2015 16:49:52 -1000 Subject: [PATCH] Fix example code The objectStore method is defined on the transaction, not the database. https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase --- README.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.markdown b/README.markdown index cbb6f1f..9d4861b 100644 --- a/README.markdown +++ b/README.markdown @@ -72,7 +72,7 @@ var database = { }, { version: "1.1", migrate: function(transaction, next) { - var store = transaction.db.objectStore("movies") + var store = transaction.objectStore("movies") store.createIndex("titleIndex", "title", { unique: true}); // Adds an index on the movies titles store.createIndex("formatIndex", "format", { unique: false}); // Adds an index on the movies formats store.createIndex("genreIndex", "genre", { unique: false}); // Adds an index on the movies genres