voorhoede/airhooks — pull request #1 by mvbschot (2014-06-09 20:50:15+00:00)
Title: chore(docs): convert jsdoc and runnable examples to Dgeni

This is what I'd call a MVPR; Minimum Viable Pull Request…

- The styling is currently UGLY (will send a separate pull request once you approved the more "functional" changes)
- I don't like either that it currently npm installs voorhoede-dgeni-packages from the #master of my repo, but I just don't have a release yet ;) so will fix as well in separate pull request once applicable

I did minimal code changes, e.g.:

- named all the functions so that jsdoc can use the code name
- made the factories always return a function and then in the function, do if/else for native/wapper. this was inconsistent before, and for simple modularity and jsdoc, the approach with doing the if/else inside the function makes the most sense.
- in the examples, moved all var declarations inside the amd module. it seems logical to me to not declare the variables until the dependency is resolved.