VRFS-1608 remove check that bypasses call to changeScreen if the user is already on the screen with the same internal name

This commit is contained in:
Brian Smith 2014-07-21 01:53:20 -04:00
parent 838a3d4d13
commit 1d96f1b981
1 changed files with 2 additions and 4 deletions

View File

@ -488,6 +488,8 @@
return postFunction(e);
}
console.log("location=%o", location);
var screen = location.page.substring(1); // remove leading slash
var accepted = screenEvent(currentScreen, 'beforeLeave', {screen:screen, hash: context.location.hash});
if(accepted === false) {
@ -503,10 +505,6 @@
}
function changeToScreen(screen, data) {
if (screen === currentScreen) {
return;
}
changeScreen(screen, data);
}