Comparing version 0.20.9 to 0.20.10
{ | ||
"name": "cerebral", | ||
"version": "0.20.9", | ||
"version": "0.20.10", | ||
"description": "A state controller with its own debugger", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -29,2 +29,6 @@ var utils = require('./utils.js'); | ||
if (isInitialized) { | ||
return; | ||
} | ||
isInitialized = true; | ||
@@ -35,3 +39,3 @@ | ||
controller.once('signalEnd', function () { | ||
var event = new CustomEvent('cerebral.dev.initialized', { | ||
var event = new CustomEvent('cerebral.dev.cerebralPong', { | ||
detail: getDetail() | ||
@@ -43,3 +47,3 @@ }); | ||
} else { | ||
var event = new CustomEvent('cerebral.dev.initialized', { | ||
var event = new CustomEvent('cerebral.dev.cerebralPong', { | ||
detail: getDetail() | ||
@@ -53,5 +57,5 @@ }); | ||
window.addEventListener('cerebral.dev.initialize', function () { | ||
if (isInitialized) { | ||
update(); | ||
window.addEventListener('cerebral.dev.debuggerPing', function () { | ||
if (utils.isDeveloping()) { | ||
initialize(); | ||
} | ||
@@ -105,3 +109,4 @@ }); | ||
if (utils.isDeveloping()) { | ||
initialize(); | ||
var event = new Event('cerebral.dev.cerebralPing'); | ||
window.dispatchEvent(event); | ||
} | ||
@@ -108,0 +113,0 @@ } |
@@ -54,3 +54,5 @@ var CreateSignalFactory = require('./CreateSignalFactory.js'); | ||
controller.devtools.start(); | ||
return controller; | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2383357
28054