fnp
/
fnpeditor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
6384a81
)
Missing strict declarations
author
Aleksander Łukasz
<aleksander.lukasz@nowoczesnapolska.org.pl>
Wed, 12 Jun 2013 14:55:34 +0000
(16:55 +0200)
committer
Aleksander Łukasz
<aleksander.lukasz@nowoczesnapolska.org.pl>
Wed, 12 Jun 2013 17:52:04 +0000
(19:52 +0200)
entrypoint.js
patch
|
blob
|
history
modules.js
patch
|
blob
|
history
modules/data.js
patch
|
blob
|
history
modules/documentCanvas/documentCanvas.js
patch
|
blob
|
history
modules/documentCanvas/transformations.js
patch
|
blob
|
history
modules/metadataEditor/transformations.js
patch
|
blob
|
history
modules/nodePane/nodePane.js
patch
|
blob
|
history
modules/rng/rng.js
patch
|
blob
|
history
modules/sourceEditor/sourceEditor.js
patch
|
blob
|
history
rng.js
patch
|
blob
|
history
diff --git
a/entrypoint.js
b/entrypoint.js
index
42e7209
..
6f81c94
100644
(file)
--- a/
entrypoint.js
+++ b/
entrypoint.js
@@
-1,5
+1,6
@@
(function() {
(function() {
-
+ 'use strict';
+
requirejs.config({
\r
baseUrl: '/static/editor',
requirejs.config({
\r
baseUrl: '/static/editor',
diff --git
a/modules.js
b/modules.js
index
ebee292
..
9accc7d
100644
(file)
--- a/
modules.js
+++ b/
modules.js
@@
-3,6
+3,9
@@
define(function(require) {
Each module must be required explicitly by apropriate 'require' function call
\r
in order for requirejs optimizer to work.
\r
*/
\r
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
return {
\r
data: require('modules/data'),
\r
rng: require('modules/rng/rng'),
\r
diff --git
a/modules/data.js
b/modules/data.js
index
5a48572
..
2848454
100644
(file)
--- a/
modules/data.js
+++ b/
modules/data.js
@@
-1,5
+1,7
@@
define(function() {
\r
\r
define(function() {
\r
\r
+'use strict';
\r
+
\r
return function(sandbox) {
\r
\r
var doc = sandbox.getBootstrappedData().document;
\r
return function(sandbox) {
\r
\r
var doc = sandbox.getBootstrappedData().document;
\r
diff --git
a/modules/documentCanvas/documentCanvas.js
b/modules/documentCanvas/documentCanvas.js
index
6e1d07c
..
9d2e725
100644
(file)
--- a/
modules/documentCanvas/documentCanvas.js
+++ b/
modules/documentCanvas/documentCanvas.js
@@
-6,7
+6,7
@@
define([
'./wlxmlNode',
\r
'libs/text!./template.html'], function(_, transformations, wlxmlNode, template) {
\r
\r
'./wlxmlNode',
\r
'libs/text!./template.html'], function(_, transformations, wlxmlNode, template) {
\r
\r
-
\r
+'use strict';
\r
\r
return function(sandbox) {
\r
\r
\r
return function(sandbox) {
\r
\r
@@
-57,7
+57,7
@@
return function(sandbox) {
_.each(mutation.addedNodes, function(node) {
\r
node = $(node);
\r
node.parent().find('[wlxml-tag]').each(function() {
\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
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
diff --git
a/modules/documentCanvas/transformations.js
b/modules/documentCanvas/transformations.js
index
de72efd
..
44ab78a
100644
(file)
--- a/
modules/documentCanvas/transformations.js
+++ b/
modules/documentCanvas/transformations.js
@@
-1,5
+1,7
@@
define(['libs/jquery-1.9.1.min'], function($) {
\r
\r
define(['libs/jquery-1.9.1.min'], function($) {
\r
\r
+ 'use strict';
\r
+
\r
var transformations = {};
\r
\r
transformations.fromXML = {
\r
var transformations = {};
\r
\r
transformations.fromXML = {
\r
diff --git
a/modules/metadataEditor/transformations.js
b/modules/metadataEditor/transformations.js
index
a6fea3f
..
8202a9f
100644
(file)
--- a/
modules/metadataEditor/transformations.js
+++ b/
modules/metadataEditor/transformations.js
@@
-1,5
+1,7
@@
define(['libs/jquery-1.9.1.min'], function($) {
\r
\r
define(['libs/jquery-1.9.1.min'], function($) {
\r
\r
+ 'use strict';
\r
+
\r
return {
\r
getMetadata: function(xml) {
\r
var toret = {};
\r
return {
\r
getMetadata: function(xml) {
\r
var toret = {};
\r
diff --git
a/modules/nodePane/nodePane.js
b/modules/nodePane/nodePane.js
index
037715f
..
a9ef9e4
100644
(file)
--- a/
modules/nodePane/nodePane.js
+++ b/
modules/nodePane/nodePane.js
@@
-5,9
+5,11
@@
define([
\r
], function(templateSrc, $, _) {
\r
\r
\r
], function(templateSrc, $, _) {
\r
\r
+'use strict';
\r
+
\r
return function(sandbox) {
\r
\r
return function(sandbox) {
\r
\r
- view = $(_.template(templateSrc)());
\r
+ v
ar v
iew = $(_.template(templateSrc)());
\r
\r
view.on('change', 'select', function(e) {
\r
var target = $(e.target);
\r
\r
view.on('change', 'select', function(e) {
\r
var target = $(e.target);
\r
diff --git
a/modules/rng/rng.js
b/modules/rng/rng.js
index
8202346
..
deda771
100644
(file)
--- a/
modules/rng/rng.js
+++ b/
modules/rng/rng.js
@@
-6,8
+6,9
@@
define([
'libs/text!./editingLayout.html',
\r
], function(layout, vbox, tabs, mainLayoutTemplate, visualEditingLayoutTemplate) {
\r
\r
'libs/text!./editingLayout.html',
\r
], function(layout, vbox, tabs, mainLayoutTemplate, visualEditingLayoutTemplate) {
\r
\r
+'use strict';
\r
+
\r
return function(sandbox) {
\r
return function(sandbox) {
\r
- 'use strict';
\r
\r
function addMainTab(title, slug, view) {
\r
views.mainTabs.addTab(title, slug, view);
\r
\r
function addMainTab(title, slug, view) {
\r
views.mainTabs.addTab(title, slug, view);
\r
diff --git
a/modules/sourceEditor/sourceEditor.js
b/modules/sourceEditor/sourceEditor.js
index
bd56c43
..
431fcb8
100644
(file)
--- a/
modules/sourceEditor/sourceEditor.js
+++ b/
modules/sourceEditor/sourceEditor.js
@@
-1,5
+1,7
@@
define(function() {
\r
\r
define(function() {
\r
\r
+'use strict';
\r
+
\r
return function(sandbox) {
\r
\r
var view = $(sandbox.getTemplate('main')());
\r
return function(sandbox) {
\r
\r
var view = $(sandbox.getTemplate('main')());
\r
diff --git
a/rng.js
b/rng.js
index
7089031
..
04a8d4f
100644
(file)
--- a/
rng.js
+++ b/
rng.js
@@
-1,8
+1,14
@@
-define({
+define(function() {
+
+'use strict';
+
+return {
modules: {},
initModules: ['rng'],
permissions: {
'skelton': ['getDOM'],
'rng': ['getModule', 'handleEvents', 'getDOM']
}
modules: {},
initModules: ['rng'],
permissions: {
'skelton': ['getDOM'],
'rng': ['getModule', 'handleEvents', 'getDOM']
}
+}
+
});
\ No newline at end of file
});
\ No newline at end of file