Lungo.View.Aside.js 483 B

12345678910111213141516171819202122
  1. /**
  2. * Initialize the <articles> layout of a certain <section>
  3. *
  4. * @namespace LUNGO.View
  5. * @class Aside
  6. *
  7. * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  8. * @author Guillermo Pascual <pasku@tapquo.com> || @pasku1
  9. */
  10. LUNGO.View.Aside = (function(lng, undefined) {
  11. var toggle = function(section_id) {
  12. var articles = lng.dom(section_id + ' article');
  13. articles.toggleClass('aside');
  14. };
  15. return {
  16. toggle: toggle
  17. };
  18. })(LUNGO);