www.webOShelp.net

Get the latest on:webOS Developers' RSS FeedwebOS Facebook page webOS Twitter Feed

Home Resources API Reference Mojo.Depot.removeAll(onSuccess, onFailure)

Mojo.Depot.removeAll(onSuccess, onFailure)

Function to delete the data from the current depot database.

Argument Type Description
onSuccess Function Function called when the data is successfully deleted
onFailure Function Function called if the data could not be deleted

Example usage:

db = new Mojo.Depot({name:"feedDB", version:1, estimatedSize:25000, replace: false}, 
     this.dbOpenOK.bind(this), this.dbOpenFail.bind(this))
db.removeAll(); 
 

0 Comments

    Add Comment


      • >:o
      • :-[
      • :'(
      • :-(
      • :-D
      • :-*
      • :-)
      • :P
      • :\
      • 8-)
      • ;-)