Skip to content

Instantly share code, notes, and snippets.

@lavelle
Created June 4, 2012 23:24
Show Gist options
  • Save lavelle/2871439 to your computer and use it in GitHub Desktop.
Save lavelle/2871439 to your computer and use it in GitHub Desktop.
LayoutManager fetch override
var HeaderView = Backbone.View.extend({
//template: '#header-tmpl',
tagName: 'header',
fetch: function(name){
var done = this.async();
$.ajax({
url: 'header.html',
success: function(contents){
done(contents);
},
error: function(data){
log(data);
}
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment