Feature/fix inline image data (#32)
Feature/fix inline image data (#32)

* Allow for non-id containers

* Treant uses the drawArea as a native dom object and not a jQuery object, so using .get(0)

* Simplify use of addClass/removeClass to toggleClass

* Add a callback for onCollapseFinished

* A few minor comment spelling corrections

* Added onCreateNode and onCreateNodeCollapseSwitch. Further, using jQuery’s well established $.extend for deep merge of configuration objects which means we can now supply callback functions (without $.extend the local UTIL.createMerge doesn’t work for this functionality)

* Beginnings of having optional jQuery support

* Moved findEl to UTIL and moved the configuration of $ to Treant instead of Tree

* Added a UTIL.toggleClass to help remove the jQuery dependency

* Fix for jQuery usage of extend()

* Implemented the ability to have the drawArea autosize according to the tree content.

* Removed the last of the jQuery dependencies. This means the collapse/expand works without jQuery being available.

* Address issues #22; uses the suggestion given but ensures not to affect the load process (because it internally tracks the images being loaded). Relaxed the indexOf up to the colon as a URL will not include “data:”, but may not be followed by “image/“.

fperucic/treant-js