From 9a3104cb21e3172d902c72f3d6d1ac1881e14d3d Mon Sep 17 00:00:00 2001 From: JC Brand Date: Mon, 4 Aug 2014 18:00:30 +0200 Subject: [PATCH] "is_last" property no longer used. --- spec/controlbox.js | 33 +++++++++++---------------------- tests/utils.js | 1 - 2 files changed, 11 insertions(+), 23 deletions(-) diff --git a/spec/controlbox.js b/spec/controlbox.js index cda7ff683..efe6689df 100644 --- a/spec/controlbox.js +++ b/spec/controlbox.js @@ -163,8 +163,7 @@ subscription: 'both', ask: null, groups: name === 'ungrouped'? [] : [name], - fullname: mock.cur_names[i], - is_last: i===(mock.cur_names.length-1) + fullname: mock.cur_names[i] }); } }, converse)); @@ -201,8 +200,7 @@ subscription: 'both', ask: null, groups: groups, - fullname: mock.cur_names[i], - is_last: i===(mock.cur_names.length-1) + fullname: mock.cur_names[i] }); } // Check that usernames appear alphabetically per group @@ -229,8 +227,7 @@ subscription: 'both', ask: null, groups: name === 'ungrouped'? [] : [name], - fullname: mock.cur_names[i], - is_last: i===(mock.cur_names.length-1) + fullname: mock.cur_names[i] }); } }, converse)); @@ -270,8 +267,7 @@ jid: mock.pend_names[0].replace(/ /g,'.').toLowerCase() + '@localhost', subscription: 'none', ask: 'subscribe', - fullname: mock.pend_names[0], - is_last: true + fullname: mock.pend_names[0] }); }, converse)); waits(300); @@ -309,8 +305,7 @@ jid: name.replace(/ /g,'.').toLowerCase() + '@localhost', subscription: 'none', ask: 'subscribe', - fullname: name, - is_last: true + fullname: name }); expect(this.rosterview.get('Pending contacts').$el.is(':visible')).toEqual(true); converse.rosterview.$el.find(".pending-contact-name:contains('"+name+"')") @@ -334,17 +329,15 @@ it("can be added to the roster and they will be sorted alphabetically", $.proxy(function () { _clearContacts(); - var i, t, is_last; + var i, t; spyOn(converse, 'emit'); spyOn(this.rosterview, 'update').andCallThrough(); for (i=0; i