Skip to content

Instantly share code, notes, and snippets.

@taxilian
Created January 14, 2014 22:16
Show Gist options
  • Save taxilian/8426996 to your computer and use it in GitHub Desktop.
Save taxilian/8426996 to your computer and use it in GitHub Desktop.
define(['base/BaseView', 'underscore',
'_tpl!./tpl/CustomReport.jst'], function(BaseView, _, tpl) {
var CustomReportView = BaseView.extend({
events: {
},
render: function() {
var self = this;
var $el = $(this.el);
$el.empty();
$el.append(tpl({}));
return this;
},
refresh: function() {
this.render();
}
});
return CustomReportView;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment