wix/angular-tree-control — pull request #39 by Pasukaru (2014-07-24 13:38:27+00:00)
Title: Added support to prevent directory toggling

This adds another option to `$scope.options`: `dirToggleable`.

`dirToggleable` is a function that's passed two arguments: `node` and a boolean `expanding` indicating whether the node is expanded or collapsed.

If the result of `dirToggleable` is falsy, the action will terminate (return) and thus prevent toggling of the node/directory.