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:
parent
239b87a1fa
commit
e402338af7
4 changed files with 11 additions and 5 deletions
|
@ -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;
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue