File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,7 @@ export default Ember.Controller.extend({
12
12
return this . get ( 'requestedVersion' ) ? this . get ( 'model' ) : this . get ( 'crate' ) ;
13
13
} ) ,
14
14
downloads : computed . alias ( 'downloadsContext.version_downloads' ) ,
15
- extraDownloads : computed ( 'downloads.content.meta.extra_downloads' , function ( ) {
16
- return this . get ( 'downloads.content.meta.extra_downloads' ) || [ ] ;
17
- } ) ,
15
+ extraDownloads : computed . alias ( 'downloads.content.meta.extra_downloads' ) ,
18
16
19
17
fetchingFollowing : true ,
20
18
following : false ,
@@ -111,11 +109,13 @@ export default Ember.Controller.extend({
111
109
} ,
112
110
113
111
downloadData : computed ( 'downloads' , 'extraDownloads' , 'requestedVersion' , function ( ) {
114
- let { downloads, extraDownloads : extra } = this . getProperties ( 'downloads' , 'extraDownloads ') ;
115
- if ( ! downloads || ! extra ) {
112
+ let downloads = this . get ( 'downloads' ) ;
113
+ if ( ! downloads ) {
116
114
return ;
117
115
}
118
116
117
+ let extra = this . get ( 'extraDownloads' ) || [ ] ;
118
+
119
119
var dates = { } ;
120
120
var versions = [ ] ;
121
121
for ( var i = 0 ; i < 90 ; i ++ ) {
You can’t perform that action at this time.
0 commit comments