File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ class NodeWatchFileSystem {
3636 if ( callbackUndelayed )
3737 this . watcher . once ( "change" , callbackUndelayed ) ;
3838
39- this . watcher . once ( "aggregated" , function ( changes ) {
39+ this . watcher . once ( "aggregated" , ( changes ) => {
4040 if ( this . inputFileSystem && this . inputFileSystem . purge ) {
4141 this . inputFileSystem . purge ( changes ) ;
4242 }
@@ -45,20 +45,20 @@ class NodeWatchFileSystem {
4545 changes . filter ( file => files . indexOf ( file ) >= 0 ) . sort ( ) ,
4646 changes . filter ( file => dirs . indexOf ( file ) >= 0 ) . sort ( ) ,
4747 changes . filter ( file => missing . indexOf ( file ) >= 0 ) . sort ( ) , times , times ) ;
48- } . bind ( this ) ) ;
48+ } ) ;
4949
5050 this . watcher . watch ( files . concat ( missing ) , dirs , startTime ) ;
5151
5252 if ( oldWatcher ) {
5353 oldWatcher . close ( ) ;
5454 }
5555 return {
56- close : function ( ) {
56+ close : ( ) => {
5757 this . watcher . close ( ) ;
58- } . bind ( this ) ,
59- pause : function ( ) {
58+ } ,
59+ pause : ( ) => {
6060 this . watcher . pause ( ) ;
61- } . bind ( this )
61+ }
6262 } ;
6363 }
6464}
You can’t perform that action at this time.
0 commit comments