function _reparentOrphans(parentId) {
    // Find orphans and reunite with this folder parent
    let parentGUID = this.GUIDForId(parentId);
    let orphans = this._findAnnoItems(PARENT_ANNO, parentGUID);

    this._log.debug("Reparenting orphans " + orphans + " to " + parentId);
    orphans.forEach(function(orphan) {
      // Move the orphan to the parent and drop the missing parent annotation
      if (this._reparentItem(orphan, parentId)) {
        PlacesUtils.annotations.removeItemAnnotation(orphan, PARENT_ANNO);
      }
    }, this);
  }
/**
   * For the provided parent item, attach its children to it
   */
For the provided parent item, attach its children to it
For the provided parent item attach its children to it
function _reparentOrphans(parentId) {
    let parentGUID = this.GUIDForId(parentId);
    let orphans = this._findAnnoItems(PARENT_ANNO, parentGUID);
    this._log.debug("Reparenting orphans " + orphans + " to " + parentId);
    orphans.forEach(function(orphan) {
      if (this._reparentItem(orphan, parentId)) {
        PlacesUtils.annotations.removeItemAnnotation(orphan, PARENT_ANNO);
      }
    }, this);
  }
function _reparentOrphans ( parentId ) { let parentGUID = this . GUIDForId ( parentId ) ; let orphans = this . _findAnnoItems ( PARENT_ANNO , parentGUID ) ; this . _log . debug ( "Reparenting orphans " + orphans + " to " + parentId ) ; orphans . forEach ( function ( orphan ) { if ( this . _reparentItem ( orphan , parentId ) ) { PlacesUtils . annotations . removeItemAnnotation ( orphan , PARENT_ANNO ) ; } } , this ) ; }
For the provided parent item, attach its children to it
For the provided parent item attach its children to it
// Find orphans and reunite with this folder parent // Move the orphan to the parent and drop the missing parent annotation