Explorar o código

Merge pull request #400 from nstCactus/patch-2

🐛 Dispatch an event when a service is accepted
Amauri CHAMPEAUX %!s(int64=5) %!d(string=hai) anos
pai
achega
334920b91b
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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();
                 }
             }