Skip to content

Instantly share code, notes, and snippets.

View nanuclickity's full-sized avatar

Tushar Kant nanuclickity

  • CogentLabs
  • Japan
View GitHub Profile
@nanuclickity
nanuclickity / autolayout.coffee
Created January 31, 2015 22:37
Automate view loading in layout regions on render
define ['marionette', 'radio'], (Marionette, Radio)->
class AutoLayout extends Marionette.Behavior
defaults:
regionViews: {}
regionViewsOptions: {}
events:
loadStart: 'loader:start'
loadStop: 'loader:stop'