I am using jquery UI spinner and I want to know if the spin is up or down I have tried using:

```

$('#days').spinner({
    min:0,
    spin: function(event, ui){
        console.log(ui.value);
        $day = ui.value;
        //Now here I want to detect if the event is up or down and perform 
         another function according to event type
    }
)}; 

```

This is my code,but the event is not specific to up or down
I want to detect if its up or down so that I can perform accordingly to these events.Thanks