mirror of
https://github.com/Mibew/java.git
synced 2025-04-11 15:20:13 +03:00
27 lines
673 B
JavaScript
27 lines
673 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 status bar
|
|
*/
|
|
Mibew.Collections.Status = Backbone.Collection.extend(
|
|
/** @lends Mibew.Collections.Status.prototype */
|
|
{
|
|
/**
|
|
* Use for sort controls in collection
|
|
* @param {Backbone.Model} model Control model
|
|
*/
|
|
comparator: function(model) {
|
|
return model.get('weight');
|
|
}
|
|
}
|
|
);
|
|
|
|
})(Mibew, Backbone); |