Explorar el Código

https://github.com/TapQuo/Lungo.js/pull/94 updated to Lungo.js 2.0

It's all about removing and adding the "inverted" same_classes to both current & target because it ran on visibility problems when i went to the same target from current at second time. At second time the target had the HIDe class and it wasn't shown.
Rafael Perelló hace 13 años
padre
commit
6409856b89
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/router/Lungo.Router.js

+ 1 - 1
src/router/Lungo.Router.js

@@ -39,7 +39,7 @@ Lungo.Router = (function(lng, undefined) {
                 }
 
                 current.removeClass(CLASS.SHOW).addClass(CLASS.HIDE);
-                target.addClass(CLASS.SHOW);
+                target.removeClass(CLASS.HIDE).addClass(CLASS.SHOW);
                 lng.Element.Cache.section = target;
                 lng.Element.Cache.article = target.find(ELEMENT.ARTICLE + '.' + CLASS.CURRENT);