diff -r f4fed295115b -r 4f6118afabee common/corpus-common-addon/addon/components/doc-location.js --- a/common/corpus-common-addon/addon/components/doc-location.js Thu Nov 03 09:44:11 2016 +0100 +++ b/common/corpus-common-addon/addon/components/doc-location.js Thu Nov 03 11:14:41 2016 +0100 @@ -8,15 +8,16 @@ geonamesResolver: Ember.inject.service(), - _resolveGeonamesIds: Ember.on('init', Ember.observer('url', function() { - this.get('geonamesResolver').getLabel(this.get('url')).then(function(str) { - this.set('resolvedLabel', str); - }.bind(this)); + _resolveGeonamesIds: Ember.on('init', Ember.observer('url', function () { + this.get('geonamesResolver').getLabel(this.get('url')) + .then(function (str) { + this.set('resolvedLabel', str); + }.bind(this)); })), - code: Ember.computed('url', function() { - var rawLocation = this.get('url'); - var m = rawLocation.match(constants.GEONAMES_BASE_URLS); + code: Ember.computed('url', function () { + let rawLocation = this.get('url'); + const m = rawLocation.match(constants.GEONAMES_BASE_URLS); if (m) { rawLocation = rawLocation.slice(m[0].length);