PDA

View Full Version : checkHandler is calling passed function 2 times



n01champion
23 Feb 2007, 7:55 AM
checkHandler is calling my passed function 2 times

First Time: when it unchecks the previous checked item
Second: on checked item

I am having a problem with this because my function which retrieves the aregument 'item' is getting the previous checked item data and not the item that has been checked

Here is my console log to prove it:

(1st) Object id=DE text=Default/All checked=false group=piecetype

(function doing post) POST http://172.18.17.158/~marvin/working-dev/hitsweb2/get_sequences.php

(2nd) Object id=LT text=Letters group=piecetype events=Object

Is there any type of work around for this?

Thanks

jack.slocum
23 Feb 2007, 2:00 PM
The second parameter is a boolean indicating whether it was a check or uncheck.