Remove unusued event handlers
The conversation view now handles displaying and listening to the back button. // FREEBIE
This commit is contained in:
@@ -19,12 +19,6 @@
|
|||||||
},
|
},
|
||||||
render_attributes: {
|
render_attributes: {
|
||||||
members: i18n('members')
|
members: i18n('members')
|
||||||
},
|
}
|
||||||
events: {
|
|
||||||
'click .back': 'goBack',
|
|
||||||
},
|
|
||||||
goBack: function() {
|
|
||||||
this.trigger('back');
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
|
@@ -8,12 +8,6 @@
|
|||||||
Whisper.KeyVerificationView = Whisper.View.extend({
|
Whisper.KeyVerificationView = Whisper.View.extend({
|
||||||
className: 'key-verification',
|
className: 'key-verification',
|
||||||
templateName: 'key_verification',
|
templateName: 'key_verification',
|
||||||
events: {
|
|
||||||
'click .back': 'goBack'
|
|
||||||
},
|
|
||||||
goBack: function() {
|
|
||||||
this.trigger('back');
|
|
||||||
},
|
|
||||||
splitKey: function(key) {
|
splitKey: function(key) {
|
||||||
// key is an array buffer
|
// key is an array buffer
|
||||||
var bytes = new Uint8Array(key);
|
var bytes = new Uint8Array(key);
|
||||||
|
@@ -37,12 +37,6 @@
|
|||||||
|
|
||||||
this.listenTo(this.model, 'change', this.render);
|
this.listenTo(this.model, 'change', this.render);
|
||||||
},
|
},
|
||||||
events: {
|
|
||||||
'click .back': 'goBack'
|
|
||||||
},
|
|
||||||
goBack: function() {
|
|
||||||
this.trigger('back');
|
|
||||||
},
|
|
||||||
contacts: function() {
|
contacts: function() {
|
||||||
if (this.model.isIncoming()) {
|
if (this.model.isIncoming()) {
|
||||||
var number = this.model.get('source');
|
var number = this.model.get('source');
|
||||||
|
Reference in New Issue
Block a user