Skip to content

Instantly share code, notes, and snippets.

@tvpmb
Created February 1, 2012 22:37
Show Gist options
  • Save tvpmb/1719905 to your computer and use it in GitHub Desktop.
Save tvpmb/1719905 to your computer and use it in GitHub Desktop.
template events
obj.Views.SubMenu = Backbone.LayoutManager.View.extend({
tagName: "ul",
template: "home/manage/menuSub1",
});
// Event Method:
subMenu: function(evt) {
$(evt.target).append(new obj.Views.SubMenu().render());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment