[SOLVED] Uncaught TypeError: Cannot read property 'allimageindexdata' of undefined

  •  01-14-2014, 8:33 AM

    [SOLVED] Uncaught TypeError: Cannot read property 'allimageindexdata' of undefined

    I get the following error whenever I click of splitclick a splitbutton:

    Uncaught TypeError: Cannot read property 'allimageindexdata' of undefined .

    It didn't say this before and I didn't change anything I can figure out that corresponds to this error.
    Does anyone knows where this comes from?

    Apparently self._config is "undefined", but I realy didn't change any functionality there. 

     

    With kind regards,

    Marvin Brouwer. 

     

    -- EDIT --

     

    I found out a javascript error occured in a function wich was located inside of the "_toolbartemplate.xml" inside of an "update_statusui" definition.
    For who's interested the faulty code was:

    1.    
    2. if (nodes[0].GetName().toString().toLowerCase() == "smallcaps" || root.GetName().toString().toLowerCase() == "smallcaps") {  
    3.     self.set_checked(true);  
    4. }  
    5. else {  
    6.     self.set_checked(false);  
    7. }  

    I changed it into:

    1. if (!! root && root.GetName().toString().toLowerCase() == "smallcaps") {  
    2.      self.set_checked(true);  
    3. }  
    4. else if (!! nodes[0] && nodes[0].GetName().toString().toLowerCase() == "smallcaps") {  
    5.      self.set_checked(true);  
    6. }  
    7. else {  
    8.      self.set_checked(false);  
    9. }  

View Complete Thread
Powered by Community Server (Commercial Edition), by Telligent Systems