浏览代码

Eventos prontos: ADD e REMOVE

Igor 5 年之前
父节点
当前提交
6a2dacf6a0
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      js/visualUI/commands.js

+ 3 - 0
js/visualUI/commands.js

@@ -19,6 +19,9 @@ import { registerUserEvent, ActionTypes } from "./../services/userLog";
 // let which_element_is_draged = null;
 
 export function removeCommand (command, function_obj, dom_obj) {
+
+	registerUserEvent(function_obj.name, ActionTypes.REMOVE_COMMAND, command.type, '/', 0);
+
 	if (function_obj.commands.indexOf(command) > -1) {
 		function_obj.commands.splice(function_obj.commands.indexOf(command), 1);
 		return true;