Skip to content

Commit

Permalink
Merge branch '#43/fix-index-conditional-logic' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarthak Datt committed Feb 19, 2013
2 parents 2f18103 + 229e460 commit 02151f6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/com/esri/viewer/components/toc/TOC.as
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ public class TOC extends Tree
}
}
}
else if ((newLayerIds.length - _tocRoots.length) < index < newLayerIds.length)
else if ((newLayerIds.length - _tocRoots.length < index) && (index < newLayerIds.length))
{
// index of item to move
currentTOCIndex = getCurrentTOCIndex();
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/AttributeTable/AttributeTableWidget.mxml
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,7 @@
}
}
}
else if (newLayerIds.length - arrFinalLayers.length < index < newLayerIds.length)
else if ((newLayerIds.length - arrFinalLayers.length < index) && (index < newLayerIds.length))
{
if (layer is FeatureLayer && featureLayers.indexOf(layer) != -1)
{
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/Edit/EditWidget.mxml
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@
}
}
}
else if (newLayerIds.length - arrFinalLayers.length < index < newLayerIds.length)
else if ((newLayerIds.length - arrFinalLayers.length < index) && (index < newLayerIds.length))
{
if (layer is FeatureLayer && featureLayers.indexOf(layer) != -1)
{
Expand Down

0 comments on commit 02151f6

Please sign in to comment.