-rng.modules.visualEditor = function(sandbox) {\r
- var transformations = rng.modules.visualEditor.transformations;\r
+define(['./visualEditor.transformations'], function(transformations) {\r
+\r
+return function(sandbox) {\r
\r
var view = {\r
node: $(sandbox.getTemplate('main')()),\r
var view = this;\r
this.node.find('#rng-visualEditor-sidebarButtons a').click(function(e) {\r
e.preventDefault();\r
+ e.stopPropagation();\r
var target = $(e.currentTarget);\r
if(!target.attr('data-content-id'))\r
return;\r
}\r
\r
}\r
-};
\ No newline at end of file
+};\r
+\r
+});
\ No newline at end of file