function add(aAlarm, aSuccessCb, aErrorCb) {
    debug("add()");

    this.newTxn(
      "readwrite", 
      function txnCb(aTxn, aStore) {
        debug("Going to add " + JSON.stringify(aAlarm));
        aStore.put(aAlarm).onsuccess = function setTxnResult(aEvent) {
          aTxn.result = aEvent.target.result;
          debug("Request successful. New record ID: " + aTxn.result);
        };
      },
      aSuccessCb, 
      aErrorCb
    );
  }
/**
   * @param aAlarm
   *        The record to be added.
   * @param aSuccessCb
   *        Callback function to invoke with result ID.
   * @param aErrorCb [optional]
   *        Callback function to invoke when there was an error.
   */
@param aAlarm
The record to be added.
@param aSuccessCb
Callback function to invoke with result ID.
@param aErrorCb [optional]
Callback function to invoke when there was an error.
@param aAlarm The record to be added . @param aSuccessCb Callback function to invoke with result ID . @param aErrorCb [ optional ] Callback function to invoke when there was an error .
function add(aAlarm, aSuccessCb, aErrorCb) {
    debug("add()");
    this.newTxn(
      "readwrite", 
      function txnCb(aTxn, aStore) {
        debug("Going to add " + JSON.stringify(aAlarm));
        aStore.put(aAlarm).onsuccess = function setTxnResult(aEvent) {
          aTxn.result = aEvent.target.result;
          debug("Request successful. New record ID: " + aTxn.result);
        };
      },
      aSuccessCb, 
      aErrorCb
    );
  }
function add ( aAlarm , aSuccessCb , aErrorCb ) { debug ( "add()" ) ; this . newTxn ( "readwrite" , function txnCb ( aTxn , aStore ) { debug ( "Going to add " + JSON . stringify ( aAlarm ) ) ; aStore . put ( aAlarm ) . onsuccess = function setTxnResult ( aEvent ) { aTxn . result = aEvent . target . result ; debug ( "Request successful. New record ID: " + aTxn . result ) ; } ; } , aSuccessCb , aErrorCb ) ; }
@param aAlarm
        The record to be added.
@param aAlarm The record to be added .