envato/graphbox — pull request #9 by bekema (2014-09-24 01:25:59+00:00)
Title: Add navigation injections

Im working on the idea of Injections for each UI element we intend to inject into the buildbox ui and and an Injector to handle the process. This PR adds an injection for the nav menu, test it with :
```javascript
(function(){if(window.Graphbox==null){window.Graphbox={};}
Graphbox.Injector=(function(){function Injector(payload,patient){this.payload=payload;this.patient=patient;}
Injector.prototype.inject=function(){return $(this.patient).append(this.payload);};return Injector;})();}).call(this);(function(){var _base;if(window.Graphbox==null){window.Graphbox={};}
if((_base=window.Graphbox).Injection==null){_base.Injection={};}
Graphbox.Injection.MenuNavigation=(function(){function MenuNavigation(){}
MenuNavigation.prototype.inject=function(){var $nav,$target;$nav=$("

");$nav.append("
Build Lists
");$nav.append("
Performance Time-Series
");$nav.append("
Test Time-Series
");$target=$('h2.builds-branch-query');return new Graphbox.Injector($nav,$target).inject();};return MenuNavigation;})();}).call(this);(function(){if(window.Graphbox==null){window.Graphbox={};}
(function(){var nav;nav=new Graphbox.Injection.MenuNavigation;return nav.inject();})();}).call(this);
```

Also this adds the Graphbox namespace