diff --git a/js/genetic-0.1.14.js b/js/genetic-0.1.14.js index 9be9bb9..d9ae6fd 100644 --- a/js/genetic-0.1.14.js +++ b/js/genetic-0.1.14.js @@ -153,14 +153,14 @@ var Genetic = Genetic || (function(){ , "stdev": stdev }; - var r = this.generation ? this.generation(pop.slice(0, this.configuration["maxResults"]), i, stats) : true; + var r = this.generation ? this.generation(pop.slice(0, this.configuration.maxResults), i, stats) : true; var isFinished = (typeof r != "undefined" && !r) || (i == this.configuration.iterations-1); if ( this.notification && (isFinished || this.configuration["skip"] == 0 || i%this.configuration["skip"] == 0) ) { - this.sendNotification(pop.slice(0, this.configuration["maxResults"]), i, stats, isFinished); + this.sendNotification(pop.slice(0, this.configuration.maxResults), i, stats, isFinished); } if (isFinished) diff --git a/js/genetic-0.1.14.min.js b/js/genetic-0.1.14.min.js index adec35c..4374cd5 100644 --- a/js/genetic-0.1.14.min.js +++ b/js/genetic-0.1.14.min.js @@ -1 +1 @@ -(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o=b},Minimize:function(a,b){return a=b},Minimize:function(a,b){return a