B2G/gecko/browser/components/places/content/controller.js
/**
   * Create a new Bookmark separator somewhere.
   */
Create a new Bookmark separator somewhere.
Create a new Bookmark separator somewhere .
function PC_newSeparator() {
    var ip = this._view.insertionPoint;
    if (!ip)
      throw Cr.NS_ERROR_NOT_AVAILABLE;
    var txn = new PlacesCreateSeparatorTransaction(ip.itemId, ip.index);
    PlacesUtils.transactionManager.doTransaction(txn);
    var insertedNodeId = PlacesUtils.bookmarks
                                    .getIdForItemAt(ip.itemId, ip.index);
    this._view.selectItems([insertedNodeId], false);
  }
function PC_newSeparator ( ) { var ip = this . _view . insertionPoint ; if ( ! ip ) throw Cr . NS_ERROR_NOT_AVAILABLE ; var txn = new PlacesCreateSeparatorTransaction ( ip . itemId , ip . index ) ; PlacesUtils . transactionManager . doTransaction ( txn ) ; var insertedNodeId = PlacesUtils . bookmarks . getIdForItemAt ( ip . itemId , ip . index ) ; this . _view . selectItems ( [ insertedNodeId ] , false ) ; }
Create a new Bookmark separator somewhere.
Create a new Bookmark separator somewhere .
// select the new item