PDA

View Full Version : [CLOSED] Triggering events in observable objects fails (Observable mixin)



jorgemanrubia
14 Apr 2014, 2:33 PM
I think the problem is in method `doFireEvent`. It should be

me.eventFiringSuspended && me.suspendedEvents[eventName]

instead of

me.eventFiringSuspended || me.suspendedEvents[eventName]

See fiddle:

https://fiddle.sencha.com/#fiddle/53c

evant
14 Apr 2014, 2:53 PM
You need to call the observable constructor, it initializes suspendedEvents.

jorgemanrubia
14 Apr 2014, 2:54 PM
Now I am seeing that I missed that when reading the docs. Thanks!!