Skip to content

Commit 81c530a

Browse files
bgotinkParashuram
authored andcommitted
added a get method to index
1 parent 2aeb318 commit 81c530a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

jquery.indexeddb.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,12 @@
242242
return idbIndex.openKeyCursor(wrap.range(range));
243243
}
244244
}, callback);
245+
},
246+
"get": function(key){
247+
console.log(idbIndex);
248+
return wrap.request(
249+
idbIndex.get(key)
250+
);
245251
}
246252
};
247253
}
@@ -564,6 +570,9 @@
564570
},
565571
"eachKey": function(callback, range, direction){
566572
return indexOp("eachKey", indexName, [callback, range, direction]);
573+
},
574+
"get": function(key) {
575+
return indexOp("get", indexName, [key]);
567576
}
568577
};
569578
}

0 commit comments

Comments
 (0)