Fix Group.add when index is -1
This commit is contained in:
1 parent
1ab35fad71
commit
23181a22d2
1 file changed
+2
-2
+2
-2
@@ -151,8 +151,8 @@
|
||||
return record;
|
||||
};
|
||||
array.add = function(record, position) {
|
||||
if (position === undefined) {
|
||||
position = -1;
|
||||
if ((position === undefined) || (position == -1)) {
|
||||
position = this.length;
|
||||
}
|
||||
if (record.group != this) {
|
||||
record.group = this;
|
||||
|
||||
Reference in new issue
Block a user