js/src/shared/ModuleBrowser/ModuleDefinitionModel.js
//KB.Backbone.ModuleDefinition
module.exports = Backbone.Model.extend({
initialize: function () {
var that = this;
this.id = (function () {
if (that.get('settings').category === 'template') {
return that.get('mid');
} else {
return that.get('settings').class;
}
}());
}
});