Update tree.js

replace instance of this._expanded with grid._expanded so that function() grid.expand can be overridden to directly access the expando click event thread