TranscendComputing / StackStudio

The front end for private and public clouds.
Other
2 stars 0 forks source link

cloudSetupView.js cruft cleanup #135

Closed lifeBCE closed 10 years ago

lifeBCE commented 10 years ago

Need to remove the following dead code.

  // 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.