Skip to content

Commit

Permalink
Use in gmf profile
Browse files Browse the repository at this point in the history
  • Loading branch information
ger-benjamin committed Jan 10, 2018
1 parent 323979b commit fe750b8
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions contribs/gmf/src/profile/drawLineComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,6 @@ gmf.profile.drawLineComponent.directive_ = function() {
'line': '=gmfDrawprofilelineLine',
'active': '=gmfDrawprofilelineActive',
'getStyleFn': '&?gmfDrawprofilelineStyle'
},
/**
* @param {angular.Scope} scope Scope.
* @param {angular.JQLite} element Element.
* @param {angular.Attributes} attrs Attributes.
* @param {gmf.DrawprofilelineController} controller Controller.
*/
link: (scope, element, attrs, controller) => {
controller.init();
}
};
};
Expand Down Expand Up @@ -182,7 +173,7 @@ gmf.profile.drawLineComponent.Controller_ = function($scope, $element, $timeout,
/**
* Initialise the controller.
*/
gmf.profile.drawLineComponent.Controller_.prototype.init = function() {
gmf.profile.drawLineComponent.Controller_.prototype.$onInit = function() {
const map = this['getMapFn']();
goog.asserts.assertInstanceof(map, ol.Map);
this.map_ = map;
Expand Down

0 comments on commit fe750b8

Please sign in to comment.