Skip to content

Commit

Permalink
Refactoring according to pull request feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Kuenzli committed Dec 19, 2017
1 parent 0fd98b6 commit 5a30029
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions src/query/bboxquerycomponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ goog.require('ol.events.condition');
* @ngdoc directive
* @ngname ngeoBboxQuery
*/
ngeo.query.bboxQueryComponent = function(ngeoMapQuerent) {
ngeo.query.bboxQueryComponent.directive_ = function(ngeoMapQuerent) {
return {
restrict: 'A',
scope: false,
Expand Down Expand Up @@ -84,10 +84,10 @@ ngeo.query.bboxQueryComponent = function(ngeoMapQuerent) {
};
};

ngeo.query.bboxQueryComponent.module = angular.module('ngeoBboxQuery', [
ngeo.query.bboxQueryComponent = angular.module('ngeoBboxQuery', [
ngeo.query.MapQuerent.module.name,
]);

ngeo.module.requires.push(ngeo.query.bboxQueryComponent.module.name);
ngeo.module.requires.push(ngeo.query.bboxQueryComponent.name);

ngeo.query.bboxQueryComponent.module.directive('ngeoBboxQuery', ngeo.query.bboxQueryComponent);
ngeo.query.bboxQueryComponent.directive('ngeoBboxQuery', ngeo.query.bboxQueryComponent.directive_);
8 changes: 4 additions & 4 deletions src/query/mapquerycomponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ goog.require('ol.events');
* @ngdoc directive
* @ngname ngeoMapQuery
*/
ngeo.query.mapQueryComponent = function(ngeoMapQuerent, $injector) {
ngeo.query.mapQueryComponent.directive_ = function(ngeoMapQuerent, $injector) {
return {
restrict: 'A',
scope: false,
Expand Down Expand Up @@ -121,10 +121,10 @@ ngeo.query.mapQueryComponent = function(ngeoMapQuerent, $injector) {
};


ngeo.query.mapQueryComponent.module = angular.module('ngeoMapQuery', [
ngeo.query.mapQueryComponent = angular.module('ngeoMapQuery', [
ngeo.query.MapQuerent.module.name,
]);

ngeo.module.requires.push(ngeo.query.mapQueryComponent.module.name);
ngeo.module.requires.push(ngeo.query.mapQueryComponent.name);

ngeo.query.mapQueryComponent.module.directive('ngeoMapQuery', ngeo.query.mapQueryComponent);
ngeo.query.mapQueryComponent.directive('ngeoMapQuery', ngeo.query.mapQueryComponent.directive_);
4 changes: 2 additions & 2 deletions src/query/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ ngeo.query.module = angular.module('ngeoQueryModule', [
ngeo.query.Service.module.name,
ngeo.query.Querent.module.name,
ngeo.query.MapQuerent.module.name,
ngeo.query.mapQueryComponent.module.name,
ngeo.query.bboxQueryComponent.module.name,
ngeo.query.mapQueryComponent.name,
ngeo.query.bboxQueryComponent.name,
]);

0 comments on commit 5a30029

Please sign in to comment.