added very importand function

This commit is contained in:
jacob 2023-09-11 11:25:29 +02:00
parent dd32937549
commit e671684e9a

View file

@ -1,19 +1,20 @@
"use strict"; "use strict";
var AppConstants = require('../constants/AppConstants'); var AppConstants = require("../constants/AppConstants");
var AppDispatcher = require('../dispatcher/AppDispatcher'); var AppDispatcher = require("../dispatcher/AppDispatcher");
var ActionTypes = AppConstants.ActionTypes; var ActionTypes = AppConstants.ActionTypes;
var CommandLineActions = { var CommandLineActions = {
submitCommand: function (text) {
submitCommand: function(text) {
AppDispatcher.handleViewAction({ AppDispatcher.handleViewAction({
type: ActionTypes.SUBMIT_COMMAND, type: ActionTypes.SUBMIT_COMMAND,
text: text text: text,
}); });
} },
importantfuncition: function () {
console.log("important work");
},
}; };
module.exports = CommandLineActions; module.exports = CommandLineActions;