rng.modules.skelton = function(sandbox) {\r
+ \r
+ var view = $(sandbox.getTemplate('main')());\r
+ \r
+ view.find('#rng-skelton-menu a').click(function(e) {\r
+ e.preventDefault();\r
+ sandbox.publish('cmd.' + $(e.target).attr('data-cmd'));\r
+ });\r
+ \r
return {\r
start: function() {\r
+ sandbox.getDOM().append(view);\r
sandbox.publish('ready');\r
},\r
- setMainView: function(view) {\r
- sandbox.getDOM().html(view);\r
+ setMainView: function(mainView) {\r
+ view.find('#rng-skelton-mainView').html(mainView);\r
}\r
}\r
};
\ No newline at end of file