Rename Whisper.View#attributes
Avoid colliding with Backbone.View attributes, which is a list of attrs to set on the html element for a view.
This commit is contained in:
parent
dc1b09f59d
commit
1321a90667
6 changed files with 11 additions and 11 deletions
|
@ -20,7 +20,7 @@
|
|||
Whisper.AttachmentPreviewView = Whisper.View.extend({
|
||||
className: 'attachment-preview',
|
||||
template: $('#attachment-preview').html(),
|
||||
attributes: function() {
|
||||
render_attributes: function() {
|
||||
return {source: this.src};
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue