tray/src/messenger/webim/js/source/default/collections/controls.js
Dmitriy Simushev 7f35a7488b Update JavaScript application files structure
Move Control related files from chat app to default app
2013-03-13 15:32:45 +00:00

27 lines
694 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){
/**
* @class Represents collection of chat controls
*/
Mibew.Collections.Controls = Backbone.Collection.extend(
/** @lends Mibew.Collections.Controls.prototype */
{
/**
* Use for sort controls in collection
* @param {Backbone.Model} model Control model
*/
comparator: function(model) {
return model.get('weight');
}
}
);
})(Mibew, Backbone);