diff --git a/jquery-repeater.js b/jquery-repeater.js index eaec332..7eda1ac 100644 --- a/jquery-repeater.js +++ b/jquery-repeater.js @@ -5,7 +5,7 @@ var Repeater = new Class({ removeSelector: '.repeater-remove', withDataAndEvents: false, deepWithDataAndEvents: false, - addCallback: function(){}, + addCallback: function( newContainer ){}, wrapperHtml: "
" }, i: 0, @@ -48,7 +48,7 @@ var Repeater = new Class({ this.incrementContainerAttributes(newContainer); this.initContainerButtons(newContainer); $(newContainer).appendTo(this.wrapper); - this.options.addCallback(); + this.options.addCallback( newContainer ); this.i++; }, @@ -88,4 +88,4 @@ var Repeater = new Class({ } -}); \ No newline at end of file +});