@@ -6,23 +6,21 @@ export default ApplicationSerializer.extend({
66 history : { embedded : 'always' , deserialize : 'records' , serialize : false }
77 } ,
88
9- init ( ... args ) {
10- this . _super ( ...args ) ;
9+ init ( ) {
10+ this . _super ( ...arguments ) ;
1111 this . set ( 'seq' , 0 ) ;
1212 } ,
1313
14- normalizeSingleResponse ( store , primaryModelClass , payload , id , requestType ) {
14+ normalizeSingleResponse ( store , primaryModelClass , payload ) {
1515 this . normalizeGist ( payload , false ) ;
1616
17- return this . _super ( store , primaryModelClass , payload , id , requestType ) ;
17+ return this . _super ( ... arguments ) ;
1818 } ,
1919
20- normalizeArrayResponse ( store , primaryModelClass , payload , id , requestType ) {
21- payload . forEach ( function ( hash ) {
22- this . normalizeGist ( hash , true ) ;
23- } . bind ( this ) ) ;
20+ normalizeArrayResponse ( store , primaryModelClass , payload ) {
21+ payload . forEach ( ( hash ) => this . normalizeGist ( hash , true ) ) ;
2422
25- return this . _super ( store , primaryModelClass , payload , id , requestType ) ;
23+ return this . _super ( ... arguments ) ;
2624 } ,
2725
2826 normalizeGist ( payload , isArray ) {
@@ -59,9 +57,7 @@ export default ApplicationSerializer.extend({
5957
6058 // Deleted files need to be given a null value
6159 if ( deletedFiles ) {
62- deletedFiles . forEach ( ( fileId ) => {
63- filesJson [ fileId ] = null ;
64- } ) ;
60+ deletedFiles . forEach ( ( fileId ) => filesJson [ fileId ] = null ) ;
6561 }
6662
6763 files . forEach ( ( fileSnapshot ) => {
@@ -101,7 +97,7 @@ export default ApplicationSerializer.extend({
10197 this . serializeFiles ( snapshot , json , relationship ) ;
10298 }
10399 else {
104- this . _super . apply ( this , arguments ) ;
100+ this . _super ( ... arguments ) ;
105101 }
106102 }
107103} ) ;
0 commit comments