abstract-state-router
Advanced tools
Comparing version 3.6.0 to 3.6.1
12
index.js
@@ -40,3 +40,4 @@ var StateState = require('./state-state') | ||
function destroyStateName(stateName) { | ||
activeEmitters[stateName]('destroy') | ||
activeEmitters[stateName].emit('destroy') | ||
activeEmitters[stateName].removeAllListeners() | ||
delete activeEmitters[stateName] | ||
@@ -50,3 +51,3 @@ delete activeStateResolveContent[stateName] | ||
function resetStateName(stateName) { | ||
activeEmitters[stateName]('destroy') | ||
activeEmitters[stateName].emit('destroy') | ||
delete activeEmitters[stateName] | ||
@@ -174,3 +175,4 @@ delete activeStateResolveContent[stateName] | ||
return stateNames.map(prototypalStateHolder.get).forEach(function(state) { | ||
var context = new EventEmitter() | ||
var emitter = new EventEmitter() | ||
var context = Object.create(emitter) | ||
extend(context, { | ||
@@ -182,5 +184,3 @@ domApi: activeDomApis[state.name], | ||
}) | ||
activeEmitters[state.name] = function emit() { | ||
context.emit.apply(context, arguments) | ||
} | ||
activeEmitters[state.name] = emitter | ||
@@ -187,0 +187,0 @@ try { |
{ | ||
"name": "abstract-state-router", | ||
"version": "3.6.0", | ||
"version": "3.6.1", | ||
"description": "The basics of a client-side state router ala the AngularJS ui-router, but without any DOM interactions", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
75687