X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/8867ca067b8cd6d88eee386f00f15a031c297a79..ccd0a4f745a6fab17a228d822e80d8bbb6fa7d5d:/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