lib/client/index.js
function onChange(changedPath, event) {
       var _ref = path.extname(changedPath),
           action = cssExtensions.indexOf(_ref) >= 0 ? 'updateCSS' : 'reload';
       //first change is with delayTime delay , thereafter only once there has been no further changes for guardTime seconds

       //validate the change
       if (customOnChange.validate) {
           if (!customOnChange.validate(changedPath, event,action)) { return ;} //ignore changes if the app says-so
       }

       //avoid multiple rapid changes
       var delay=delayTime;
       if (lastRun[action].guardTime) { clearTimeout(lastRun[action].guardTime); delay=guardTime;}
       if (lastRun[action].delayTime) { clearTimeout(lastRun[action].delayTime); delay=delayTime;}
       lastRun[action].delayTime = setTimeout(function(){
           onChangeFiltered(changedPath, event, action);
           lastRun[action].guardTime = setTimeout(function(){
               lastRun[action].guardTime=null;
               }, delay);
            lastRun[action].delayTime=null;
           }, delay);

       return Date.now();
     }
function onChange(changedPath, event) {
       var _ref = path.extname(changedPath),
           action = cssExtensions.indexOf(_ref) >= 0 ? 'updateCSS' : 'reload';
       //first change is with delayTime delay , thereafter only once there has been no further changes for guardTime seconds

       //validate the change
       if (customOnChange.validate) {
           if (!customOnChange.validate(changedPath, event,action)) { return ;} //ignore changes if the app says-so
       }

       //avoid multiple rapid changes
       var delay=delayTime;
       if (lastRun[action].guardTime) { clearTimeout(lastRun[action].guardTime); delay=guardTime;}
       if (lastRun[action].delayTime) { clearTimeout(lastRun[action].delayTime); delay=delayTime;}
       lastRun[action].delayTime = setTimeout(function(){
           onChangeFiltered(changedPath, event, action);
           lastRun[action].guardTime = setTimeout(function(){
               lastRun[action].guardTime=null;
               }, delay);
            lastRun[action].delayTime=null;
           }, delay);

       return Date.now();
     }
function onChange ( changedPath , event ) { var _ref = path . extname ( changedPath ) , action = cssExtensions . indexOf ( _ref ) >= 0 ? 'updateCSS' : 'reload' ; //first change is with delayTime delay , thereafter only once there has been no further changes for guardTime seconds //validate the change if ( customOnChange . validate ) { if ( ! customOnChange . validate ( changedPath , event , action ) ) { return ; } //ignore changes if the app says-so } //avoid multiple rapid changes var delay = delayTime ; if ( lastRun [ action ] . guardTime ) { clearTimeout ( lastRun [ action ] . guardTime ) ; delay = guardTime ; } if ( lastRun [ action ] . delayTime ) { clearTimeout ( lastRun [ action ] . delayTime ) ; delay = delayTime ; } lastRun [ action ] . delayTime = setTimeout ( function ( ) { onChangeFiltered ( changedPath , event , action ) ; lastRun [ action ] . guardTime = setTimeout ( function ( ) { lastRun [ action ] . guardTime = null ; } , delay ) ; lastRun [ action ] . delayTime = null ; } , delay ) ; return Date . now ( ) ; }
reload the browser
reload the browser