abstract-state-router
Advanced tools
Comparing version 3.4.0 to 3.5.0
@@ -141,6 +141,7 @@ var StateState = require('./state-state') | ||
} | ||
return state | ||
}).then(ifNotCancelled(function(state) { | ||
stateProviderEmitter.emit('stateChangeStart', state, parameters) | ||
})).then(function getStateChanges() { | ||
}).then(ifNotCancelled(emit('stateChangeStart', newStateName, parameters))) | ||
.then(function getStateChanges() { | ||
var stateComparisonResults = StateComparison(prototypalStateHolder)(current.get().name, current.get().parameters, newStateName, parameters) | ||
@@ -193,3 +194,3 @@ return stateChangeLogic(stateComparisonResults) // { destroy, change, create } | ||
try { | ||
stateProviderEmitter.emit('stateChangeEnd', newStateName, parameters) | ||
stateProviderEmitter.emit('stateChangeEnd', prototypalStateHolder.get(newStateName), parameters) | ||
} catch (e) { | ||
@@ -196,0 +197,0 @@ handleError('error', e) |
{ | ||
"name": "abstract-state-router", | ||
"version": "3.4.0", | ||
"version": "3.5.0", | ||
"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", |
@@ -103,4 +103,4 @@ var test = require('tape') | ||
stateRouter.once('stateChangeStart', function(name, properties) { | ||
t.equal(name, 'valid1.valid') | ||
stateRouter.once('stateChangeStart', function(state, properties) { | ||
t.equal(state.name, 'valid1.valid') | ||
t.deepEqual(properties, firstProperties) | ||
@@ -113,4 +113,4 @@ t.notOk(firstParentActivate) | ||
stateRouter.once('stateChangeEnd', function(name, properties) { | ||
t.equal(name, 'valid1.valid') | ||
stateRouter.once('stateChangeEnd', function(state, properties) { | ||
t.equal(state.name, 'valid1.valid') | ||
t.deepEqual(properties, firstProperties) | ||
@@ -122,4 +122,4 @@ t.ok(firstParentActivate) | ||
stateRouter.once('stateChangeStart', function(name, properties) { | ||
t.equal(name, 'valid2.valid') | ||
stateRouter.once('stateChangeStart', function(state, properties) { | ||
t.equal(state.name, 'valid2.valid') | ||
t.deepEqual(properties, secondProperties) | ||
@@ -132,4 +132,4 @@ t.ok(firstParentActivate) | ||
stateRouter.once('stateChangeEnd', function(name, properties) { | ||
t.equal(name, 'valid2.valid') | ||
stateRouter.once('stateChangeEnd', function(state, properties) { | ||
t.equal(state.name, 'valid2.valid') | ||
t.deepEqual(properties, secondProperties) | ||
@@ -136,0 +136,0 @@ t.ok(firstParentActivate) |
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
74297
2189