Handle non-IDBKeyRange range objects (http://www.w3.org/TR/IndexedDB/#widl-IDBObjectStore-openCursor-IDBRequest-any-range-IDBCursorDirection-direction).
Update IDBObjectStore.js

Check if primary key is undefined, instead of just (!primaryKey), as if a primary key is 0 we would still want to continue with the callback and not get the next auto-increment key.
Reset prefetched data after update or delete.
New build with latest changes
Fix typo in comment
Fix callback scheduling when we are checking existence of dbVersions table

I made a test case:

db = window.openDatabase("foo", 1, "Foo", 4*1024*1024)

_.times(2, function(n) {
  db.transaction(function(tx) {
    console.log("transaction"+n);
    tx.executeSql("SELECT * FROM dbVersions", [], function(t, data) {
      console.log("transaction success"+n);
    });
  }, function() {
    console.log("error"+n);
    db.transaction(function(tx) {
      console.log("error transaction"+n);
    });
  }, function() { console.log("success"+n)});
})

The error transaction ends up getting scheduled after transaction 2.  If a user had called .open() before the error transaction
had run then the open() transaction would try to access the uncreated dbVersions table.
Check in buil changed dist files
Upgrade node version

TravisCI is failing to run npm install.  I suspect its because its
running an old version of npm.  Upgrading node should fix that
Merge branch 'incoming-pr' of https://github.com/mattjacobsen/IndexedDBShim

Conflicts:
	dist/IndexedDBShim.min.js
	dist/IndexedDBShim.min.map
Merge branch 'mattjacobsen-incoming-pr'
Merge pull request #145 from sdemjanenko/comment_fixes

Fix typo in comment
Merge pull request #146 from sdemjanenko/update_node

Upgrade node version
Merge remote-tracking branch 'origin/incoming-pr'
Merge branch 'master' into create_db_transaction_error_callback_fix

* master:
  Upgrade node version
  Fix typo in comment
  Handle non-IDBKeyRange range objects (http://www.w3.org/TR/IndexedDB/#widl-IDBObjectStore-openCursor-IDBRequest-any-range-IDBCursorDirection-direction).
fixed typo
Merge pull request #150 from icodeforlove/patch-1

fixed typo
Merge branch 'create_db_transaction_error_callback_fix' of https://github.com/sdemjanenko/IndexedDBShim into sdemjanenko-create_db_transaction_error_callback_fix
Merge branch 'sdemjanenko-create_db_transaction_error_callback_fix'
Run build