Not sure if it would be worth it to do proper dirty checking here by storing the last value that was submitted in a var .