[Representation] Minimize scope reuse

When switching among domain objects and/or views, avoid
reusing the same information is scope. The wrong information
in scope can cause various failures in views, such as WTD-1182.
This commit is contained in:
Victor Woeltjen
2015-05-20 16:26:28 -07:00
parent f74199e60f
commit 9b6d8cf1ec
2 changed files with 31 additions and 6 deletions

View File

@ -69,6 +69,9 @@ define(
function lookupPanels(ids) {
var configuration = $scope.configuration || {};
// Ensure ids is array-like
ids = ids || [];
// Pull panel positions from configuration
rawPositions = shallowCopy(configuration.panels || {}, ids);