* VRFS-1076 - fix for leave session being broken

This commit is contained in:
Seth Call 2014-02-04 21:45:34 +00:00
parent 8c1e2c5df6
commit 636ca9b891
2 changed files with 3 additions and 17 deletions

View File

@ -322,7 +322,9 @@
var hash = context.location.hash;
if(!this.layout.isScreenName(hash)) {
try { context.RouteMap.parse(hash); }
catch(e) {
console.log("ignoring bogus screen name: %o", hash)
hash = null;
}

View File

@ -428,18 +428,6 @@
dialogEvent(dialog, 'afterHide');
}
function isScreenName(screenName) {
if(!screenName) return false;
var hashIndex = screenName.indexOf('#');
if(hashIndex > -1) {
screenName = screenName.substr(hashIndex);
}
return screenBindings[screenName];
}
function screenEvent(screen, evtName, data) {
if (screen && screen in screenBindings) {
if (evtName in screenBindings[screen]) {
@ -764,10 +752,6 @@
};
};
this.isScreenName = function(screenName) {
return isScreenName(screenName);
}
this.bindScreen = function(screen, handler) {
screenBindings[screen] = handler;
};