Search code examples
coffeescriptjavascriptmvcspine.js

How to create "dual" Spine.js application?


I would like to have two-panel filemanager like mc or total commander. Do I have to create two different controllers with same functionality?


Solution

  • Probably you can just use two instances of the same controller. Something like:

    new App.FileManager({el: $('#panel_left')});
    new App.FileManager({el: $('#panel_right')});
    

    Obviously, it's just a general idea.