Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
green3g committed Feb 1, 2017
1 parent 50cc823 commit f3cf778
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 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 @@ -43,9 +43,9 @@
_ConfigMixin,
_LayoutMixin,
_MapMixin,
_WidgetsMixin,
_WidgetsMixin

_WebMapMixin
// _WebMapMixin
//_MyCustomMixin

) {
Expand Down
3 changes: 1 addition & 2 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 @@ -64,7 +63,7 @@ define([
// let some other mixins modify or add map items async
var wait = this.inherited(arguments);
if (wait) {
wait.then(function (warnings) {
wait.then(function () {
// are warnings passed?
// returnWarnings.push(warnings);
mapDeferred.resolve(returnWarnings);
Expand Down
4 changes: 2 additions & 2 deletions viewer/js/viewer/_WidgetsMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ define([
}));
} else {
var deferreds = this.createWidgets(['loading']);
if (deferreds.length) {
if (deferreds && deferreds.length) {
waitDeferred = promiseAll(deferreds);
}
}
Expand Down Expand Up @@ -139,7 +139,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 f3cf778

Please sign in to comment.