electron-devtools-vendor
Version:
<div align="center"> <h2>electron-devtools-vendor</h2> <img alt="MIT" src="https://img.shields.io/github/license/BlackHole1/electron-devtools-vendor?color=9cf&style=flat-square"> <img alt="GitHub repo size" src="https://img.shields.io/github/r
34 lines (24 loc) • 965 B
JavaScript
/* This collection is sorted in reverse order (latest first) */
define(["backbone", "underscore", "backboneAgentClient",
"collections/Collection", "models/AppComponentAction"],
function(Backbone, _, backboneAgentClient, Collection, AppComponentAction) {
var AppComponentActions = Collection.extend({
component: undefined, // oggetto sottotipo di AppComponent
model: AppComponentAction,
orderReverse: true,
initialize: function(models, options) {
this.component = options.component;
Collection.prototype.initialize.apply(this, arguments);
},
url: function() {
return this.component.url()+'/actions';
},
createModel: function(modelIndex) {
var model = new this.model();
model.component = this.component;
model.index = modelIndex;
return model;
}
});
return AppComponentActions;
});