mibew/src/mibew/js/source/default/collections/controls.js
2014-08-08 12:34:04 +00:00

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);