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 | | ====================================================================== |
| 5 | I create a patch to fix this problem, attached. |