Comparing version 0.17.6 to 0.17.7
{ | ||
"name": "cerebral", | ||
"version": "0.17.6", | ||
"version": "0.17.7", | ||
"description": "A state controller with its own debugger", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -28,11 +28,6 @@ var utils = require('./utils.js'); | ||
}); | ||
signalStore.remember(signalStore.getSignals().length - 1); | ||
window.dispatchEvent(event); | ||
}; | ||
window.addEventListener('cerebral.dev.initialize', function () { | ||
signalStore.remember(signalStore.getSignals().length - 1); | ||
initialize(); | ||
}); | ||
initialize(); | ||
window.addEventListener('cerebral.dev.toggleKeepState', function () { | ||
@@ -71,5 +66,16 @@ signalStore.toggleKeepState(); | ||
return { | ||
update: update | ||
update: update, | ||
start: function () { | ||
if (utils.isDeveloping()) { | ||
if (window.CEREBRAL_DEBUGGER_INJECTED) { | ||
initialize(); | ||
} else { | ||
window.addEventListener('cerebral.dev.initialize', function () { | ||
initialize(); | ||
}); | ||
} | ||
} | ||
} | ||
}; | ||
}; |
@@ -36,2 +36,3 @@ var CreateSignalFactory = require('./CreateSignalFactory.js'); | ||
}; | ||
controller.devtools = devtools; | ||
controller.toJSON = model.toJSON; | ||
@@ -38,0 +39,0 @@ |
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
3527921
36704