Skip to content

Instantly share code, notes, and snippets.

@jurgens
Created August 21, 2014 13:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jurgens/54520bcc06ac4ed38662 to your computer and use it in GitHub Desktop.
Save jurgens/54520bcc06ac4ed38662 to your computer and use it in GitHub Desktop.
Wondr.Views.Header = Backbone.Marionette.ItemView.extend
el: 'header'
update_state: (current) ->
@$('#primary li').removeClass('current')
@$("#primary li.#{current}").addClass('current') if current?
init: ->
$( '.account' ).makisu({
selector: 'li',
overlap: 0.2,
speed: 0.3
});
initialize: ->
...
@header = new Wondr.Views.Header
@header.init()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment