Clean up older views, mostly whitespace
This commit is contained in:
parent
44a31f3ed9
commit
f89cf890df
2 changed files with 270 additions and 271 deletions
|
@ -14,20 +14,19 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Whisper = Whisper || {};
|
|
||||||
|
|
||||||
(function () {
|
(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
var Whisper = Whisper || {};
|
||||||
|
|
||||||
// list of conversations, showing user/group and last message sent
|
// list of conversations, showing user/group and last message sent
|
||||||
Whisper.ConversationListItemView = Whisper.View.extend({
|
Whisper.ConversationListItemView = Whisper.View.extend({
|
||||||
tagName: 'div',
|
tagName: 'div',
|
||||||
className: 'contact',
|
className: 'contact',
|
||||||
|
template: $('#contact').html(),
|
||||||
events: {
|
events: {
|
||||||
'click': 'select'
|
'click': 'select'
|
||||||
},
|
},
|
||||||
template: $('#contact').html(),
|
|
||||||
initialize: function() {
|
initialize: function() {
|
||||||
this.listenTo(this.model, 'change', this.render); // auto update
|
this.listenTo(this.model, 'change', this.render); // auto update
|
||||||
this.listenTo(this.model, 'destroy', this.remove); // auto update
|
this.listenTo(this.model, 'destroy', this.remove); // auto update
|
||||||
|
|
|
@ -13,10 +13,10 @@
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
var Whisper = Whisper || {};
|
|
||||||
|
|
||||||
(function () {
|
(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
var Whisper = Whisper || {};
|
||||||
|
|
||||||
var ContactsTypeahead = Backbone.TypeaheadCollection.extend({
|
var ContactsTypeahead = Backbone.TypeaheadCollection.extend({
|
||||||
typeaheadAttributes: [
|
typeaheadAttributes: [
|
||||||
|
|
Loading…
Reference in a new issue