1. #1
    Sencha User
    Join Date
    Jul 2008
    Location
    Melbourne, Australia
    Posts
    71
    Vote Rating
    1
    ben_dog is on a distinguished road

      0  

    Question l.fireFn is undefined ?

    l.fireFn is undefined ?


    Hi,

    I sometime get this error in my firebug console.

    "l.fireFn is undefined"

    I'm not sure what's causing it. It seems very random, yet a regular occurence.

    The full error is
    Code:
    l.fireFn is undefined                        fire()()ext-all-debug.js (line 1488)
    fireEvent()()                                  ext-all-debug.js (line 1184)
    fireResize()(1585, 911)                  ext-all-debug.js (line 15741)
    fire()()                                          ext-all-debug.js (line 1488)
    fireWindowResize()()                      ext-all-debug.js (line 1771)
    getViewWidth()()                           ext-base.js (line 10)
    
    if(l.fireFn.apply(l....this.obj||window, arguments) === false){
    Any idea what can trigger this?

    Thanks,
    Ben

  2. #2
    Sencha User
    Join Date
    Jul 2008
    Location
    Melbourne, Australia
    Posts
    71
    Vote Rating
    1
    ben_dog is on a distinguished road

      0  

    Default


    Ok, I've worked out part of it...

    it seems to happen when I resize my window, which also happens when I expand/collapse the firebug console.

    Now sure what's causing it still.

    I've tried putting a resize listener when my view with a log inside, it seems the fault is triggered after the resize event.

    Any idea?

    Cheers,
    Ben

  3. #3
    Sencha User
    Join Date
    Jul 2008
    Location
    Melbourne, Australia
    Posts
    71
    Vote Rating
    1
    ben_dog is on a distinguished road

      0  

    Default


    mmmm, i've worked out the problem...

    I had an component setting up a view resize listener to a function that didn't exist

    Well, I sure hope this useless forum request still made some entertaining reading to you all.

    Cheers,
    Ben

  4. #4
    Sencha User
    Join Date
    Sep 2007
    Posts
    23
    Vote Rating
    0
    bobvandell is on a distinguished road

      0  

    Thumbs up


    Thanks, I read your last post and realized I was doing the same, assigning a listener that had not yet been defined...

  5. #5

    Default


    Yes! Your post helped us!

    I was getting that error which didn't allow my context menu to display. After triple checking my code and reading this post I found out I had a case typo in my listener's fnc name - onopnCM s/b onOpnCM:

    PHP Code:
    this.addListener('rowcontextmenu'this.onopnCM);
    ...

      
    onOpnCM: function (gridrowIndexe) { 
    So thanks!

  6. #6
    Ext JS Premium Member Jonny5's Avatar
    Join Date
    Jan 2010
    Location
    Vancouver, BC
    Posts
    30
    Vote Rating
    0
    Jonny5 is on a distinguished road

      0  

    Default


    Yes, I was stumped until I found this thread. Though it is a "silly mistake" I saved a lot of time with this thread, thanks.
    Last edited by Jonny5; 13 Oct 2010 at 1:05 PM. Reason: typo!

  7. #7
    Ext User
    Join Date
    Aug 2008
    Posts
    1
    Vote Rating
    0
    RajKrish is on a distinguished road

      0  

    Default Thanks

    Thanks


    Thanks for posting this thread, I had an empty event handler in my code too. Saved me lot of time in debugging.

  8. #8
    Sencha User
    Join Date
    Jan 2011
    Posts
    28
    Vote Rating
    0
    Zanisimo is on a distinguished road

      0  

    Default


    Thanks a lot. This post just saved me a lot of time.

  9. #9
    Sencha User jgitter's Avatar
    Join Date
    Dec 2010
    Location
    Milwaukee, WI
    Posts
    11
    Vote Rating
    0
    jgitter is on a distinguished road

      0  

    Default Thank You!

    Thank You!


    I was barking up the wrong tree. Such a silly mistake!