Skip to content

Commit 5ee09c8

Browse files
committed
Fix #1199
1 parent ff68c17 commit 5ee09c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Resources/public/js/mopabootstrap-collection.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
this.options.index = {};
3737
}
3838
if (!this.options.initial_size) {
39-
this.options.initial_size = $collection.children().length();
39+
this.options.initial_size = $collection.children().length;
4040
}
4141

4242
this.options.index[this.options.collection_id] = this.options.initial_size - 1;
@@ -121,7 +121,7 @@
121121
var $collection = $(this.options.collection_id);
122122
var items = $collection.children();
123123

124-
for (var i = 0; i < items.length(); i ++) {
124+
for (var i = 0; i < items.length; i ++) {
125125
if (row == items[i]) {
126126
return i;
127127
}

0 commit comments

Comments
 (0)