Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. MyApplication.module("FiltersApp.List", function(List, App, Backbone,
  2. Marionette, $, _) {
  3. List.ConnectionsFilterView = Marionette.ItemView.extend({});
  4. });
  5.  
  6. Application.module("FiltersApp.List", function(List, App, Backbone,
  7. Marionette, $, _) {
  8. List.Controller = App.Controllers.AppController.extend({
  9. initialize: function(options) {
  10. this.layout = this._getLayoutView();
  11. this.listenTo(this.layout, 'show', this._onLayoutShow)
  12. this.show(this.layout);
  13. },
  14.  
  15. _onLayoutShow: function() {
  16. // ...
  17. }
  18.  
  19. //....
  20. });
  21.  
  22. MyApplication.module("FiltersApp", function(FiltersApp, App, Backbone,
  23. Marionette, $, _) {
  24. var API = {
  25. listFilters: function(region) {
  26. new FiltersApp.List.Controller({region: region});
  27. }
  28. };
  29. App.commands.setHandlers({
  30. 'list:filters': function(region) {
  31. API.listFilters(region);
  32. }
  33. });
  34. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement