Skip to content

Commit e6fbfcd

Browse files
committed
Merge pull request select2#2125 from colemanw/evaluateFix
Fix evaluation of formatLoadMore
2 parents ec97c81 + 9460b0c commit e6fbfcd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1570,7 +1570,7 @@ the specific language governing permissions and limitations under the Apache Lic
15701570
self.postprocessResults(data, false, false);
15711571

15721572
if (data.more===true) {
1573-
more.detach().appendTo(results).text(self.opts.formatLoadMore(page+1));
1573+
more.detach().appendTo(results).text(evaluate(self.opts.formatLoadMore, page+1));
15741574
window.setTimeout(function() { self.loadMoreIfNeeded(); }, 10);
15751575
} else {
15761576
more.remove();

0 commit comments

Comments
 (0)