Use consistent boiler plate throughout js files
This commit is contained in:
parent
f89cf890df
commit
2ee34343a8
15 changed files with 25 additions and 40 deletions
|
@ -13,23 +13,20 @@
|
|||
* 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/>.
|
||||
*/
|
||||
var Whisper = Whisper || {};
|
||||
|
||||
(function () {
|
||||
'use strict';
|
||||
'use strict';
|
||||
window.Whisper = window.Whisper || {};
|
||||
|
||||
Whisper.ConversationListView = Whisper.ListView.extend({
|
||||
tagName: 'div',
|
||||
itemView: Whisper.ConversationListItemView,
|
||||
|
||||
events: {
|
||||
'click .contact': 'select',
|
||||
},
|
||||
|
||||
select: function(e) {
|
||||
var target = $(e.target).closest('.contact');
|
||||
target.siblings().removeClass('selected');
|
||||
return false;
|
||||
},
|
||||
});
|
||||
Whisper.ConversationListView = Whisper.ListView.extend({
|
||||
tagName: 'div',
|
||||
itemView: Whisper.ConversationListItemView,
|
||||
events: {
|
||||
'click .contact': 'select',
|
||||
},
|
||||
select: function(e) {
|
||||
var target = $(e.target).closest('.contact');
|
||||
target.siblings().removeClass('selected');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue