Adapted to nsITreeView in Firefox 22