Results 1 to 2 of 2

Thread: Models to fire an event

  1. #1
    Sencha User
    Join Date
    Jul 2013

    Default Models to fire an event


    I'm not sure if I have the right approach, but I require some heavy view lifting (not a simple data-bind) when my model is updated. So I have tried to fire an event when this model updates.
    I get the error:
    Uncaught TypeError: Object #<Object> has no method 'fireEvent'

    I tried to add the observable mixin to my model class, but I still get the error above
    extend: '', 
    mixins: ['Ext.mixin.Observable'],
    Does anyone have any ideas around this?


  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011


    Really hard to tell from the info you provided. But I would place a debugger statement before the call to fireEvent and verify in the console that the object you are calling it on is the correct one.
    Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services [email protected]

    When posting code, please use BBCode's CODE tags.

    Need to include a test case use:
    The official Sencha Fiddle

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts