(function() {
-
+ 'use strict';
+
requirejs.config({\r
baseUrl: '/static/editor',
Each module must be required explicitly by apropriate 'require' function call\r
in order for requirejs optimizer to work.\r
*/\r
+ \r
+ 'use strict';\r
+ \r
return {\r
data: require('modules/data'),\r
rng: require('modules/rng/rng'),\r
define(function() {\r
\r
+'use strict';\r
+\r
return function(sandbox) {\r
\r
var doc = sandbox.getBootstrappedData().document;\r
'./wlxmlNode',\r
'libs/text!./template.html'], function(_, transformations, wlxmlNode, template) {\r
\r
-\r
+'use strict';\r
\r
return function(sandbox) {\r
\r
_.each(mutation.addedNodes, function(node) {\r
node = $(node);\r
node.parent().find('[wlxml-tag]').each(function() {\r
- tag = $(this);\r
+ var tag = $(this);\r
if(!tag.attr('id'))\r
tag.attr('id', 'xxxxxxxx-xxxx-xxxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {var r = Math.random()*16|0,v=c=='x'?r:r&0x3|0x8;return v.toString(16);}));\r
});\r
define(['libs/jquery-1.9.1.min'], function($) {\r
\r
+ 'use strict';\r
+\r
var transformations = {};\r
\r
transformations.fromXML = {\r
define(['libs/jquery-1.9.1.min'], function($) {\r
\r
+ 'use strict';\r
+\r
return {\r
getMetadata: function(xml) {\r
var toret = {};\r
\r
], function(templateSrc, $, _) {\r
\r
+'use strict';\r
+\r
return function(sandbox) {\r
\r
- view = $(_.template(templateSrc)());\r
+ var view = $(_.template(templateSrc)());\r
\r
view.on('change', 'select', function(e) {\r
var target = $(e.target);\r
'libs/text!./editingLayout.html',\r
], function(layout, vbox, tabs, mainLayoutTemplate, visualEditingLayoutTemplate) {\r
\r
+'use strict';\r
+\r
return function(sandbox) {\r
- 'use strict';\r
\r
function addMainTab(title, slug, view) {\r
views.mainTabs.addTab(title, slug, view);\r
define(function() {\r
\r
+'use strict';\r
+\r
return function(sandbox) {\r
\r
var view = $(sandbox.getTemplate('main')());\r
-define({
+define(function() {
+
+'use strict';
+
+return {
modules: {},
initModules: ['rng'],
permissions: {
'skelton': ['getDOM'],
'rng': ['getModule', 'handleEvents', 'getDOM']
}
+}
+
});
\ No newline at end of file