mirror of
https://github.com/Mibew/mibew.git
synced 2025-04-11 02:10:12 +03:00
39 lines
937 B
JavaScript
39 lines
937 B
JavaScript
/**
|
|
* @preserve This file is part of Mibew Messenger project.
|
|
* http://mibew.org
|
|
*
|
|
* Copyright (c) 2005-2011 Mibew Messenger Community
|
|
* License: http://mibew.org/license.php
|
|
*/
|
|
|
|
(function(Mibew, Backbone, Handlebars) {
|
|
|
|
/**
|
|
* @class Represents user avatar view
|
|
*/
|
|
Mibew.Views.Avatar = Backbone.Marionette.ItemView.extend(
|
|
/** @lends Mibew.Views.Avatar.prototype */
|
|
{
|
|
/**
|
|
* Template function
|
|
* @type Function
|
|
*/
|
|
template: Handlebars.templates.avatar,
|
|
|
|
/**
|
|
* Class name for view's DOM element
|
|
* @type String
|
|
*/
|
|
className: 'avatar',
|
|
|
|
/**
|
|
* Map model events to the view methods
|
|
* @type Object
|
|
*/
|
|
modelEvents: {
|
|
'change': 'render'
|
|
}
|
|
}
|
|
);
|
|
|
|
})(Mibew, Backbone, Handlebars); |