PDA

View Full Version : help to understando this simple code



andredecotia
8 Sep 2010, 4:46 AM
Ext.getCmp('idiomaForm').hasListener(true)

what does hasListener means? I saw the documentation but I didn't understand...

Condor
8 Sep 2010, 4:58 AM
It's hasListener(eventName).

It returns if an event handler for that specific event is registered (using listeners, addListener, on).