How to use javascript namespaces correctly in a View / PartialView
问题 i've been playing with MVC for a while now, but since the project i'm on is starting to get wind in its sails more and more people are added to it. Since i'm in charge of hacking around to find out some "best practice", i'm especially wary about the possible misuses of javascript and would like to find out what would be the best way to have our views and partial views play nicely with javascript. For the moment, we're having code that looks like this (only simplified for example's sake)