Add index to editableList callback signature

This commit is contained in:
Nick O'Leary 2016-06-16 00:08:53 +01:00
parent 0d4d51fc39
commit 365d71264f
1 changed files with 2 additions and 3 deletions

View File

@ -17,8 +17,7 @@
/**
* options:
* - addButton : boolean|string - text for add label, default 'tab'
* - addable : boolean (true) - whether to show the add button
* - addButton : boolean|string - text for add label, default 'add'
* - height : number|'auto'
* - resize : function - called when list as a whole is resized
* - resizeItem : function(item) - called to resize individual item
@ -128,7 +127,7 @@
if (this.options.resizeItem) {
var that = this;
this.element.children().each(function(i) {
that.options.resizeItem($(this).find(".red-ui-editableList-item-content"));
that.options.resizeItem($(this).find(".red-ui-editableList-item-content"),i);
});
}
},