Pārlūkot izejas kodu

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ó 13 gadi atpakaļ
vecāks
revīzija
911d256fd0
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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);