Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : steal a file and get its reference as an object

$
0
0
That specific syntax isn't supported, but stealing a file and getting its reference as an object is the main use of steal. You have to use an asynchronous callback:
  1. steal('js/controllers/HomeController.js', function(HomeController) {
  2.       var hc = new HomeController();
  3.       // etc
  4. });


Viewing all articles
Browse latest Browse all 3491

Trending Articles