// category is used below in jQuery styling. if category is false
// (NaN, undefined, false) or is blank, default to cloud-accounts
var category = action.replace('/','').split("_list")[0];
if (!category || category === '') {
category = 'cloud-accounts';
}
This logic applied to the old way of updating DOM element via jQuery inside the router binding. That way of highlighting a menu item that has been selected has been moved to their respective *Selected() functions so this chunk of code dealing with category is no longer needed in router binding.
Need to remove the following dead code.
This logic applied to the old way of updating DOM element via jQuery inside the router binding. That way of highlighting a menu item that has been selected has been moved to their respective *Selected() functions so this chunk of code dealing with category is no longer needed in router binding.