| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
This is ready for review/merge. Next step is to pull the constants EVENTS_URL and MEMBERS_URL out of the code and into some config. But that can be for another pull request. |
Sorry, something went wrong.
|
As an aside… might want to consider using a package manager for vendor scripts like bower or npm. |
Sorry, something went wrong.
This is more JavaScript class idiomatic. It also allows for future abstractions like removing the hard coded URLs. The original file used tabs so I kept that even though the .vimrc seems to contradict this. This also uses UMD for encapsulation which makes it more universal to be pulled into other websites.
window.onload will overwrite and isn't really the best place since it doesn't take into account when the DOM is ready. We have jQuery so use it to initialize correctly.
| Back | FazBrowse Home | New Git URL |
This is more JavaScript class idiomatic. It also allows for future abstractions like removing the hard coded URLs.
The original file used tabs so I kept that even though the .vimrc seems to contradict this.
This also uses UMD for encapsulation which makes it more universal to be pulled into other websites.