1. #1
    Ext User
    Join Date
    Oct 2007
    Posts
    16
    Vote Rating
    0
    Egor is on a distinguished road

      0  

    Default [2.0??][DUP][SOLVED] DataView bug in updateIndexes()

    [2.0??][DUP][SOLVED] DataView bug in updateIndexes()


    There is a bug on line 17427 of ext-all-debug.js in the function updateIndexes of the DataView object.

    The line reads:
    Code:
    endIndex = (endIndex || endIndex === 0) || (ns.length - 1);
    When the endIndex value passed to the function is equal to 0 (i.e. when there is only one item in the view) this line results in endIndex being the boolean value 'true'. The subsequent lines then try to do a for loop from 0 to true, with true being interpreted as 1, which results in an error (ns[i] has no properties) as there is no element at index 1 in the array it is operating on.

    To correct this the line should just be changed to read:
    Code:
    endIndex = (endIndex || endIndex === 0 ? endIndex : ns.length - 1);

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854
    Vote Rating
    2
    tryanDLS is on a distinguished road

      0  

    Default


    Please search before posting - this has been reported multiple times and fixed in SVN - see this. http://extjs.com/forum/showthread.php?p=80817

  3. #3
    Ext User
    Join Date
    Oct 2007
    Posts
    16
    Vote Rating
    0
    Egor is on a distinguished road

      0  

    Default


    Oh right, my bad.

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar