Skip to content

Commit 0301237

Browse files
committed
eslint cleanups
1 parent 3079a6b commit 0301237

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

app/controllers/crate/version.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import Controller from '@ember/controller';
22
import PromiseProxyMixin from '@ember/object/promise-proxy-mixin';
33
import ArrayProxy from '@ember/array/proxy';
4-
import { computed } from '@ember/object';
4+
import { computed, observer } from '@ember/object';
55
import { later } from '@ember/runloop';
6+
import $ from 'jquery';
67
import moment from 'moment';
78

89
const NUM_VERSIONS = 5;
@@ -173,7 +174,7 @@ export default Controller.extend({
173174
},
174175
},
175176

176-
report: Ember.observer('crate.readme', function() {
177+
report: observer('crate.readme', function() {
177178
setTimeout(() => $(window).trigger('hashchange'));
178179
}),
179180

app/initializers/hashchange.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
import $ from 'jquery';
2+
13
function decodeFragmentValue(hash) {
24
try {
35
return decodeURIComponent(hash.slice(1));
4-
} catch (_) {
6+
} catch(_) {
57
return '';
68
}
79
}
@@ -26,7 +28,7 @@ function hashchange() {
2628
}
2729
}
2830

29-
export function initialize(application) {
31+
export function initialize() {
3032
$(window).on('hashchange', hashchange);
3133

3234
// If clicking on a link to the same fragment as currently in the address bar,

0 commit comments

Comments
 (0)