Skip to content

Commit

Permalink
Cleanup #666
Browse files Browse the repository at this point in the history
  • Loading branch information
green3g committed Feb 11, 2017
1 parent 44caebf commit 94baf8b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 14 deletions.
6 changes: 3 additions & 3 deletions viewer/js/config/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
'viewer/_ConfigMixin', // manage the Configuration
'viewer/_LayoutMixin', // build and manage the Page Layout and User Interface
'viewer/_MapMixin', // build and manage the Map
'viewer/_WidgetsMixin', // build and manage the Widgets
'viewer/_WidgetsMixin' // build and manage the Widgets

'viewer/_WebMapMixin' // for WebMaps
// 'viewer/_WebMapMixin' // for WebMaps
//'config/_customMixin'

], function (
Expand All @@ -45,7 +45,7 @@
_MapMixin,
_WidgetsMixin,

_WebMapMixin
// _WebMapMixin
//_MyCustomMixin

) {
Expand Down
2 changes: 0 additions & 2 deletions viewer/js/viewer/_LayoutMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ define([
'dojo/dom-geometry',
'dojo/sniff',
'dojo/Deferred',
'dojo/promise/all',

'put-selector',

Expand All @@ -36,7 +35,6 @@ define([
domGeom,
has,
Deferred,
promiseAll,

put,

Expand Down
6 changes: 3 additions & 3 deletions viewer/js/viewer/_MapMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ define([
}

// otherwise we can create the map
var returnWarnings = [];
var mapDeferred = new Deferred(),
container = dom.byId(this.config.layout.map) || 'mapCenter';

Expand All @@ -65,8 +64,9 @@ define([
var wait = this.inherited(arguments);
if (wait) {
wait.then(function (warnings) {
// are warnings passed?
// returnWarnings.push(warnings);
if (warnings) {
returnWarnings = returnWarnings.concat(warnings);
}
mapDeferred.resolve(returnWarnings);
});
} else {
Expand Down
2 changes: 0 additions & 2 deletions viewer/js/viewer/_WebMapMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ define([
'dojo/_base/declare',
'dojo/_base/lang',
'dojo/_base/array',
'dojo/promise/all',
'dojo/dom',

'esri/arcgis/utils',
Expand All @@ -14,7 +13,6 @@ define([
declare,
lang,
array,
promiseAll,
dom,

arcgisUtils,
Expand Down
6 changes: 2 additions & 4 deletions viewer/js/viewer/_WidgetsMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ define([
}
if (this.layoutDeferred) {
promiseAll([this.mapDeferred, this.layoutDeferred])
.then(lang.hitch(this,
'createWidgets', ['titlePane', 'contentPane', 'floating', 'domNode', 'invisible', 'layout']
));
.then(lang.hitch(this, 'createWidgets'));
}
},

Expand Down Expand Up @@ -139,7 +137,7 @@ define([
source: 'Controller',
error: 'Widget type "' + widgetConfig.type + '" (' + widgetConfig.title + ') at position ' + position + ' is not supported.'
});
return;
return null;
}

if (position) {
Expand Down

0 comments on commit 94baf8b

Please sign in to comment.