File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
import Controller from '@ember/controller' ;
2
2
import PromiseProxyMixin from '@ember/object/promise-proxy-mixin' ;
3
3
import ArrayProxy from '@ember/array/proxy' ;
4
- import { computed } from '@ember/object' ;
4
+ import { computed , observer } from '@ember/object' ;
5
5
import { later } from '@ember/runloop' ;
6
+ import $ from 'jquery' ;
6
7
import moment from 'moment' ;
7
8
8
9
const NUM_VERSIONS = 5 ;
@@ -173,7 +174,7 @@ export default Controller.extend({
173
174
} ,
174
175
} ,
175
176
176
- report : Ember . observer ( 'crate.readme' , function ( ) {
177
+ report : observer ( 'crate.readme' , function ( ) {
177
178
setTimeout ( ( ) => $ ( window ) . trigger ( 'hashchange' ) ) ;
178
179
} ) ,
179
180
Original file line number Diff line number Diff line change
1
+ import $ from 'jquery' ;
2
+
1
3
function decodeFragmentValue ( hash ) {
2
4
try {
3
5
return decodeURIComponent ( hash . slice ( 1 ) ) ;
4
- } catch ( _ ) {
6
+ } catch ( _ ) {
5
7
return '' ;
6
8
}
7
9
}
@@ -26,7 +28,7 @@ function hashchange() {
26
28
}
27
29
}
28
30
29
- export function initialize ( application ) {
31
+ export function initialize ( ) {
30
32
$ ( window ) . on ( 'hashchange' , hashchange ) ;
31
33
32
34
// If clicking on a link to the same fragment as currently in the address bar,
You can’t perform that action at this time.
0 commit comments