mirror of
https://github.com/Mibew/mibew.git
synced 2025-04-11 02:10:12 +03:00
27 lines
735 B
JavaScript
27 lines
735 B
JavaScript
/*!
|
|
* Copyright 2005-2014 the original author or authors.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
* You may obtain a copy of the License at
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*/
|
|
|
|
(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); |