X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/8867ca067b8cd6d88eee386f00f15a031c297a79..df248fcadb1956e5027424ab9e59c41ddd96d3bd:/modules/visualEditor.transformations.js?ds=sidebyside diff --git a/modules/visualEditor.transformations.js b/modules/visualEditor.transformations.js index 8a32831..1fef83a 100644 --- a/modules/visualEditor.transformations.js +++ b/modules/visualEditor.transformations.js @@ -1,8 +1,4 @@ -if(typeof module !== 'undefined' && module.exports) { - var $ = require('jquery'); -} - -(function($) { +define(['libs/jquery-1.9.1.min'], function($) { var transformations = {}; @@ -107,11 +103,6 @@ if(typeof module !== 'undefined' && module.exports) { } } + return transformations; - if(typeof module !== 'undefined' && module.exports) { - module.exports = transformations; - } else { - rng.modules.visualEditor.transformations = transformations; - } - -})($); \ No newline at end of file +}); \ No newline at end of file