Explorar o código

Dispatch trigger "load" when calling router.back

@soyjavi %!s(int64=14) %!d(string=hai) anos
pai
achega
aa548f9759
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/router/Lungo.Router.js

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

@@ -96,7 +96,7 @@ LUNGO.Router = (function(lng, undefined) {
 
         lng.Router.History.removeLast();
         target = lng.Element.sections.siblings(ELEMENT.SECTION + lng.Router.History.current());
-        target.removeClass(CLASS.HIDE).addClass(CLASS.SHOW);
+        target.removeClass(CLASS.HIDE).addClass(CLASS.SHOW).trigger(TRIGGER.LOAD);
         lng.Element.Current.section = target;
     };