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
/
tabsManager.js
diff --git
a/modules/tabsManager.js
b/modules/tabsManager.js
index
1f0ac18
..
a204858
100644
(file)
--- a/
modules/tabsManager.js
+++ b/
modules/tabsManager.js
@@
-1,4
+1,6
@@
-rng.modules.tabsManager = function(sandbox) {
\r
+define(function() {
\r
+
\r
+return function(sandbox) {
\r
\r
var $ = sandbox.$;
\r
\r
\r
var $ = sandbox.$;
\r
\r
@@
-26,6
+28,7
@@
rng.modules.tabsManager = function(sandbox) {
tabContent[prevSlug].detach();
\r
tabContent[slug].appendTo(view.find('#rng-tabsManager-content'));
\r
currentSlug = slug;
\r
tabContent[prevSlug].detach();
\r
tabContent[slug].appendTo(view.find('#rng-tabsManager-content'));
\r
currentSlug = slug;
\r
+ sandbox.publish('showed', slug);
\r
}
\r
\r
\r
}
\r
\r
\r
@@
-53,4
+56,6
@@
rng.modules.tabsManager = function(sandbox) {
}
\r
}
\r
\r
}
\r
}
\r
\r
-};
\ No newline at end of file
+};
\r
+
\r
+});
\ No newline at end of file