Ver Fonte

Merge pull request #400 from nstCactus/patch-2

🐛 Dispatch an event when a service is accepted
Amauri CHAMPEAUX há 5 anos atrás
pai
commit
334920b91b
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      tarteaucitron.js

+ 1 - 0
tarteaucitron.js

@@ -748,6 +748,7 @@ var tarteaucitron = {
                     tarteaucitron.pro('!' + key + '=engage');
 
                     tarteaucitron.launch[key] = true;
+                    tarteaucitron.sendEvent(key + '_loaded');
                     tarteaucitron.services[key].js();
                 }
             }