Attachinterrupt0 and attachinterrupt1 doesn't work

Could the fact that the Leonardo has the interrupts on pins 2 and 3 reversed compared with other Arduino boards be a factor here I wonder ?

http://arduino.cc/en/Reference/AttachInterrupt