Editor: Introducing requirejs
[fnpeditor.git] / modules / rng.js
index 36bd2f8..ffb228d 100644 (file)
@@ -1,4 +1,6 @@
-rng.modules.rng = function(sandbox) {\r
+define(function() {\r
+\r
+return function(sandbox) {\r
 \r
     function addTab(title, slug, view) {\r
         sandbox.getModule('tabsManager').addTab(title, slug, view);\r
@@ -94,4 +96,6 @@ rng.modules.rng = function(sandbox) {
             }\r
         }\r
     }\r
-};
\ No newline at end of file
+};\r
+\r
+});
\ No newline at end of file