Skip to content

Commit

Permalink
Add a clear function to the WebSqlStorage implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
rbackhouse committed Oct 30, 2011
1 parent 801c494 commit dc0e390
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions WebSqlStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ var WebSqlStorage;
};

WebSqlStorage.prototype = {
clear: function() {
this.db.transaction(function(tx) {
tx.executeSql('DROP TABLE IF EXISTS lsjs');
});
},
isSupported: function() {
return !!window.openDatabase;
},
Expand Down

0 comments on commit dc0e390

Please sign in to comment.