fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Visual editor: moving require.js to libs directory
[fnpeditor.git]
/
modules
/
visualEditor.transformations.js
diff --git
a/modules/visualEditor.transformations.js
b/modules/visualEditor.transformations.js
index
8a32831
..
1fef83a
100644
(file)
--- 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 = {};
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