X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/bf404a740c73d3aa8df7a44ef47012f33933e624..d8865b93d11a624bd55e55d2a9e92ad6c4bacde5:/src/editor/modules/documentCanvas/documentCanvas.js?ds=sidebyside diff --git a/src/editor/modules/documentCanvas/documentCanvas.js b/src/editor/modules/documentCanvas/documentCanvas.js index aa38e79..0a31114 100644 --- a/src/editor/modules/documentCanvas/documentCanvas.js +++ b/src/editor/modules/documentCanvas/documentCanvas.js @@ -2,10 +2,9 @@ define([ 'libs/jquery', -'libs/underscore', './canvas/canvas', './commands', -'libs/text!./template.html'], function($, _, canvas3, commands, template) { +'libs/text!./template.html'], function($, canvas3, commands, template) { 'use strict'; @@ -61,8 +60,7 @@ return function(sandbox) { canvas.setCurrentElement(node); }, command: function(command, params) { - commands.run(command, params, canvas); - sandbox.publish('contentChanged'); + commands.run(command, params, canvas, sandbox.getConfig().user); } };