From c42c82ee1b72b5a15e19a6ef13298b71ad866029 Mon Sep 17 00:00:00 2001 From: BrownBear2 Date: Thu, 11 Jun 2015 11:45:28 +0200 Subject: [PATCH] Update genetic-0.1.14.js fix: maxResults in configuration was ignored --- js/genetic-0.1.14.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/genetic-0.1.14.js b/js/genetic-0.1.14.js index b40a230..5d26720 100644 --- a/js/genetic-0.1.14.js +++ b/js/genetic-0.1.14.js @@ -160,7 +160,7 @@ var Genetic = Genetic || (function(){ this.notification && (isFinished || this.configuration["skip"] == 0 || i%this.configuration["skip"] == 0) ) { - this.sendNotification(pop.slice(0, this.maxResults), i, stats, isFinished); + this.sendNotification(pop.slice(0, this.configuration["maxResults"]), i, stats, isFinished); } if (isFinished)