Permalink
Browse files

'continue' and 'delete' are somehow reserved

The closure compiler trips on these as method
names, so we simply use array-index syntax to
access these properties.
  • Loading branch information...
1 parent b7536ee commit 1d9df4abb5f5719d12a77d3d0d7d8ccbf3e09cc5 @krestenkrab committed Dec 14, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/adapters/indexed-db.js
@@ -169,7 +169,7 @@ Lawnchair.adapter('indexed-db', (function(){
var cursor = event.target.result;
if (cursor) {
toReturn.push(cursor.value);
- cursor.continue();
+ cursor['continue']();
}
else {
if (cb) cb.call(self, toReturn);
@@ -191,7 +191,7 @@ Lawnchair.adapter('indexed-db', (function(){
var self = this;
var win = function () { if (callback) self.lambda(callback).call(self) };
- var request = this.db.transaction(["teststore"], webkitIDBTransaction.READ_WRITE).objectStore("teststore").delete(keyOrObj);
+ var request = this.db.transaction(["teststore"], READ_WRITE).objectStore("teststore")['delete'](keyOrObj);
request.onsuccess = win;
request.onerror = fail;
return this;

0 comments on commit 1d9df4a

Please sign in to comment.