30 lines
888 B
JavaScript
30 lines
888 B
JavaScript
define(
|
|
[
|
|
'marionette',
|
|
'backbone'
|
|
], function (Marionette, Backbone) {
|
|
'use strict';
|
|
|
|
var vent = new Backbone.Wreqr.EventAggregator();
|
|
|
|
vent.Events = {
|
|
SeriesAdded : 'series:added',
|
|
SeriesDeleted : 'series:deleted',
|
|
SeasonRenamed : 'season:renamed',
|
|
CommandComplete: 'command:complete'
|
|
};
|
|
|
|
vent.Commands = {
|
|
EditSeriesCommand : 'EditSeriesCommand',
|
|
DeleteSeriesCommand: 'DeleteSeriesCommand',
|
|
CloseModalCommand : 'CloseModalCommand',
|
|
ShowEpisodeDetails : 'ShowEpisodeDetails',
|
|
ShowHistoryDetails : 'ShowHistoryDetails',
|
|
ShowLogDetails : 'ShowLogDetails',
|
|
SaveSettings : 'saveSettings',
|
|
ShowLogFile : 'showLogFile'
|
|
};
|
|
|
|
return vent;
|
|
});
|