tags:

views:

15

answers:

1

Hi,

is there a way to check if an item has already an event handler connected ?

like:

if (!isconnected(item)) {
  dojo.connect(item, 'onclick', doSomething());
}

??

+1  A: 
if (!itemConnected)
    itemConnected = dojo.connect(item, 'onclick', doSomething())
virsir