Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
add one-liner alias just to be super nice
Browse files Browse the repository at this point in the history
  • Loading branch information
cmcculloh committed Mar 6, 2015
1 parent ab84332 commit da2033a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,8 @@

//alias for collapse for consistency. "Collapse" is an ambiguous term (collapse what? All? One specific branch?)
Tree.prototype.closeAll = Tree.prototype.collapse;
//alias for backwards compatibility because there's no reason not to.
Tree.prototype.openFolder = Tree.prototype.discloseFolder;

// TREE PLUGIN DEFINITION

Expand Down

0 comments on commit da2033a

Please sign in to comment.