* VRFS-1076 - fix for leave session being broken
This commit is contained in:
parent
8c1e2c5df6
commit
636ca9b891
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue