Changes between Initial Version and Version 1 of Ticket #13820


Ignore:
Timestamp:
Sep 5, 2011, 3:22:20 AM (8 years ago)
Author:
bill
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13820

    • Property Owner set to rahul
    • Property Component changed from General to DojoX MVC
  • Ticket #13820 – Description

    initial v1  
    33An error is thrown out said 'Out of bounds insert attempted, must be contiguous.'
    44
    5 I create a patch to fix this problem as follow:
    6 
    7 
    8 Index: StatefulModel.js
    9 ===================================================================
    10 --- StatefulModel.js    (revision 26299)
    11 +++ StatefulModel.js    (working copy)
    12 @@ -259,7 +259,7 @@
    13          n = name;
    14          if(!this.get(n)){
    15          n1 = n-1;
    16 -        if(!this.get(n1)){
    17 +        if(n>0&&!this.get(n1)){
    18          throw new Error("Out of bounds insert attempted, must be contiguous.");
    19          }
    20          this.set(n, stateful);
    21 
    22 
    23 ======================================================================
     5I create a patch to fix this problem, attached.