PrimeRevenue/tent — pull request #274 by mmuddasir (2013-06-17 10:59:56+00:00)
Title: Bug/fancy tree find node

The method [findFirst](https://github.com/PrimeRevenue/tent/blob/master/vendor/fancy-tree/jquery.fancytree.js#L417) on a node traverses the node children & returns the first node which has given title.

Now as an argument for the title we can supply a string(title name) or a function(which does the validation), previously we used to send title of the node as a parameter so in this case it uses a private function [_makeNodeTitleMatcher](https://github.com/PrimeRevenue/tent/blob/master/vendor/fancy-tree/jquery.fancytree.js#L134) which returns a function which does the matching.

The problem with the method is it treats a nodes with titles **"Child of Node 1"** & **"Node 1"** same

***Courtesy***
``` javascript
// If node.title = "Child of Node 1" and s = "node 1" this statement returns true
return node.title.toLowerCase().indexOf(s) >= 0;
```