fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Editor: Introducing requirejs
[fnpeditor.git]
/
modules
/
sourceEditor.js
diff --git
a/modules/sourceEditor.js
b/modules/sourceEditor.js
index
5a62eaf
..
248c02d
100644
(file)
--- a/
modules/sourceEditor.js
+++ b/
modules/sourceEditor.js
@@
-1,4
+1,6
@@
-rng.modules.sourceEditor = function(sandbox) {
\r
+define(function() {
\r
+
\r
+return function(sandbox) {
\r
\r
var view = $(sandbox.getTemplate('main')());
\r
var isDirty = false;
\r
\r
var view = $(sandbox.getTemplate('main')());
\r
var isDirty = false;
\r
@@
-36,4
+38,6
@@
rng.modules.sourceEditor = function(sandbox) {
}
\r
\r
}
\r
}
\r
\r
}
\r
-};
\ No newline at end of file
+};
\r
+
\r
+});
\ No newline at end of file