B2G/gecko/browser/components/places/src/PlacesUIUtils.jsm
/**
   * Get a transaction for copying a uri item (either a bookmark or a history
   * entry) from one container to another.
   *
   * @param   aData
   *          JSON object of dropped or pasted item properties
   * @param   aContainer
   *          The container being copied into
   * @param   aIndex
   *          The index within the container the item is copied to
   * @return A nsITransaction object that performs the copy.
   *
   * @note Since a copy creates a completely new item, only some internal
   *       annotations are synced from the old one.
   * @see this._copyableAnnotations for the list of copyable annotations.
   */
Get a transaction for copying a uri item (either a bookmark or a history
entry) from one container to another.

@param   aData
JSON object of dropped or pasted item properties
@param   aContainer
The container being copied into
@param   aIndex
The index within the container the item is copied to
@return A nsITransaction object that performs the copy.

@note Since a copy creates a completely new item, only some internal
annotations are synced from the old one.
@see this._copyableAnnotations for the list of copyable annotations.
Get a transaction for copying a uri item ( either a bookmark or a history entry ) from one container to another . @param aData JSON object of dropped or pasted item properties @param aContainer The container being copied into @param aIndex The index within the container the item is copied to @return A nsITransaction object that performs the copy . @note Since a copy creates a completely new item only some internal annotations are synced from the old one . @see this . _copyableAnnotations for the list of copyable annotations .
function PUIU__getURIItemCopyTransaction(aData, aContainer, aIndex)
  {
    let transactions = [];
    if (aData.dateAdded) {
      transactions.push(
        new PlacesEditItemDateAddedTransaction(null, aData.dateAdded)
      );
    }
    if (aData.lastModified) {
      transactions.push(
        new PlacesEditItemLastModifiedTransaction(null, aData.lastModified)
      );
    }
    let keyword = aData.keyword || null;
    let annos = [];
    if (aData.annos) {
      annos = aData.annos.filter(function (aAnno) {
        return this._copyableAnnotations.indexOf(aAnno.name) != -1;
      }, this);
    }
    return new PlacesCreateBookmarkTransaction(PlacesUtils._uri(aData.uri),
                                               aContainer, aIndex, aData.title,
                                               keyword, annos, transactions);
  }
function PUIU__getURIItemCopyTransaction ( aData , aContainer , aIndex ) { let transactions = [ ] ; if ( aData . dateAdded ) { transactions . push ( new PlacesEditItemDateAddedTransaction ( null , aData . dateAdded ) ) ; } if ( aData . lastModified ) { transactions . push ( new PlacesEditItemLastModifiedTransaction ( null , aData . lastModified ) ) ; } let keyword = aData . keyword || null ; let annos = [ ] ; if ( aData . annos ) { annos = aData . annos . filter ( function ( aAnno ) { return this . _copyableAnnotations . indexOf ( aAnno . name ) != - 1 ; } , this ) ; } return new PlacesCreateBookmarkTransaction ( PlacesUtils . _uri ( aData . uri ) , aContainer , aIndex , aData . title , keyword , annos , transactions ) ; }
Get a transaction for copying a uri item (either a bookmark or a history
 entry) from one container to another.
Get a transaction for copying a uri item ( either a bookmark or a history entry ) from one container to another .