diff --git a/contribs/gmf/src/controllers/abstract.js b/contribs/gmf/src/controllers/abstract.js index 0f7ac508921..65c38c767ab 100644 --- a/contribs/gmf/src/controllers/abstract.js +++ b/contribs/gmf/src/controllers/abstract.js @@ -588,7 +588,7 @@ gmf.AbstractController.prototype.initLanguage = function() { * @private */ gmf.AbstractController.prototype.setDefaultBackground_ = function(theme) { - this.gmfThemes_.getBgLayers(this.dimensions).then((layers) => { + this.gmfThemes_.getBgLayers().then((layers) => { let layer; // get the background from the permalink diff --git a/contribs/gmf/src/directives/backgroundlayerselector.js b/contribs/gmf/src/directives/backgroundlayerselector.js index df4efdfa70a..b4d137e645d 100644 --- a/contribs/gmf/src/directives/backgroundlayerselector.js +++ b/contribs/gmf/src/directives/backgroundlayerselector.js @@ -164,7 +164,7 @@ gmf.BackgroundlayerselectorController.prototype.$onInit = function() { * @private */ gmf.BackgroundlayerselectorController.prototype.handleThemesChange_ = function() { - this.gmfThemes_.getBgLayers(this.dimensions).then((layers) => { + this.gmfThemes_.getBgLayers().then((layers) => { this.bgLayers = layers; }); }; diff --git a/contribs/gmf/src/services/themesservice.js b/contribs/gmf/src/services/themesservice.js index 35c721d0fb0..8a4dbab515f 100644 --- a/contribs/gmf/src/services/themesservice.js +++ b/contribs/gmf/src/services/themesservice.js @@ -229,10 +229,9 @@ gmf.Themes.getFlatNodes = function(node, nodes) { /** * Get background layers. - * @param {!Object.} appDimensions Dimensions. * @return {!angular.$q.Promise.>} Promise. */ -gmf.Themes.prototype.getBgLayers = function(appDimensions) { +gmf.Themes.prototype.getBgLayers = function() { const gettextCatalog = this.gettextCatalog; if (this.bgLayerPromise_) { return this.bgLayerPromise_; diff --git a/contribs/gmf/test/spec/services/themesservice.spec.js b/contribs/gmf/test/spec/services/themesservice.spec.js index 5903126c2c2..c76fc27ae85 100644 --- a/contribs/gmf/test/spec/services/themesservice.spec.js +++ b/contribs/gmf/test/spec/services/themesservice.spec.js @@ -24,7 +24,7 @@ describe('gmf.Themes', () => { it('Get background layers', () => { const spy = jasmine.createSpy(); - gmfThemes.getBgLayers({}).then(spy); + gmfThemes.getBgLayers().then(spy); const urls = []; $httpBackend.expectGET(treeUrl);