Skip to content

Commit

Permalink
remove dependency on nls for 2 words.
Browse files Browse the repository at this point in the history
To override the title, include a config for the widget in viewer.js.
  • Loading branch information
tmcgee committed Mar 3, 2017
1 parent 34c448b commit 4fbf86a
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions viewer/js/viewer/_WebMapMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ define([
'dojo/dom',

'esri/arcgis/utils',
'esri/units',

'dojo/i18n!../config/nls/main'
'esri/units'

], function (
declare,
Expand All @@ -16,9 +14,7 @@ define([
dom,

arcgisUtils,
units,

i18n
units
) {
return declare(null, {
startup: function () {
Expand Down Expand Up @@ -162,7 +158,7 @@ define([
id: 'directions',
type: 'titlePane',
path: 'gis/dijit/Directions',
title: i18n.viewer.widgets.directions,
title: 'Directions',
open: false,
position: 999,
options: {
Expand All @@ -186,7 +182,7 @@ define([
id: 'measurement',
type: 'titlePane',
path: 'gis/dijit/Measurement',
title: i18n.viewer.widgets.measure,
title: 'Measurement',
open: false,
position: 999,
options: {
Expand Down

0 comments on commit 4fbf86a

Please sign in to comment.