Improved performance using dev tools profiling
Improved performance using dev tools profiling

Profile flagged getNavigationLink as "ForIn is not fast case" -
See 5.2 of
https://github.com/petkaantonov/bluebird/wiki/Optimization-killers.
Turns out deleting item from object puts it in hash table mode. Replaced
the delete with an if check (and simplified the if because routeInfo
data's never null). Shaved off over 20%

grahammendick/navigation,grahammendick/navigation,grahammendick/navigation,grahammendick/navigation,grahammendick/navigation,grahammendick/navigation,grahammendick/navigation