Make it easier to reference templates

Whisper.Views can now use templateName to reference the id of the
desired template.
This commit is contained in:
lilia 2015-09-04 13:06:17 -07:00
parent 239b87a1fa
commit e402338af7
4 changed files with 11 additions and 5 deletions

View file

@ -19,7 +19,7 @@
var ContactView = Whisper.View.extend({
className: 'contact-detail',
template: $('#contact-detail').html(),
templateName: 'contact-detail',
initialize: function(options) {
this.conflict = options.conflict;
},