Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
dasa committed Mar 15, 2013
1 parent 72f1778 commit 65f831f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/com/esri/viewer/WidgetTemplate.as
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ public class WidgetTemplate extends SkinnableContainer implements IWidgetTemplat
private static const WIDGET_MINIMIZED:String = "minimized";

private static const WIDGET_CLOSED:String = "closed";

private static const WIDGET_START_DRAG:String = "startDrag";

private static const WIDGET_STOP_DRAG:String = "stopDrag";

private var _widgetId:Number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -428,9 +428,9 @@ public class TocMapLayerItem extends TocItem
{
var visLayers:Array = getActualVisibleLayers(MapServiceUtil.getVisibleSubLayers(_dynamicMapServiceLayerInfos), _dynamicMapServiceLayerInfos);
arcGISDynamicMapServiceLayer.visibleLayers = new ArrayCollection(visLayers);
}
arcGISDynamicMapServiceLayer.visibleLayers.addEventListener(CollectionEvent.COLLECTION_CHANGE, visibleLayersChangeHandler);
_visibleLayersChangeWatcher = ChangeWatcher.watch(arcGISDynamicMapServiceLayer, "visibleLayers", visibleLayersChange);
}
arcGISDynamicMapServiceLayer.visibleLayers.addEventListener(CollectionEvent.COLLECTION_CHANGE, visibleLayersChangeHandler);
_visibleLayersChangeWatcher = ChangeWatcher.watch(arcGISDynamicMapServiceLayer, "visibleLayers", visibleLayersChange);
if (_isVisibleLayersSet)
{
layerInfos = [];
Expand Down
8 changes: 4 additions & 4 deletions src/widgets/Directions/DirectionsWidget.mxml
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@
directions.geocoderOptions = directionsGeocoderOptions;
}
var directionsRouteOptions:DirectionsRouteOptions = new DirectionsRouteOptions;
var directionsRouteOptions:DirectionsRouteOptions = new DirectionsRouteOptions;
directionsRouteOptions.directionsLanguage = resourceManager.localeChain[0]; // always set directionsLanguage
//route options
if (configXML.routeoptions.length() > 0)
{
{
var routeOptionsXML:XMLList = configXML.routeoptions;
var directionsLanguage:String = routeOptionsXML.directionslanguage.toString();
Expand All @@ -151,7 +151,7 @@
{
directionsRouteOptions.directionsOutputType = toDirectionsOutputType(directionsOutputType);
}
var impedanceAttribute:String = routeOptionsXML.impedanceattribute.toString();
if (impedanceAttribute)
{
Expand Down
10 changes: 5 additions & 5 deletions src/widgets/Edit/EditWidget.mxml
Original file line number Diff line number Diff line change
Expand Up @@ -1382,11 +1382,11 @@
if (!editor.toolbarVisible)
{
for each (var featureLayer:FeatureLayer in featureLayers)
{
if (!featureLayerToSelectionColor[featureLayer] &&
{
if (!featureLayerToSelectionColor[featureLayer] &&
featureLayer.layerDetails &&
(featureLayer.layerDetails.geometryType == Geometry.POLYGON || featureLayer.layerDetails.geometryType == Geometry.POLYLINE))
{
{
featureLayerToSelectionColor[featureLayer] = featureLayer.selectionColor;
featureLayer.selectionColor = NaN;
}
Expand All @@ -1403,7 +1403,7 @@
// clear feature layer selection
for each (var featureLayer:FeatureLayer in featureLayers)
{
{
if (featureLayerToSelectionColor[featureLayer]) // restore selection color
{
featureLayer.selectionColor = featureLayerToSelectionColor[featureLayer];
Expand All @@ -1415,7 +1415,7 @@
if (featureLayer.name.indexOf("hiddenLayer_") != -1)
{
map.removeLayer(featureLayer);
}
}
}
// assign back the renderer info
for (var layer:Object in dictionary)
Expand Down

0 comments on commit 65f831f

Please sign in to comment.