From 85a1f99855a2e2c02a061fa388a0d11ae93fc729 Mon Sep 17 00:00:00 2001 From: Gabriel Lebec Date: Tue, 3 May 2016 23:38:26 -0400 Subject: [PATCH] moves bugfix from compiled files to source files --- js/genetic-0.1.14.js | 4 ++-- js/genetic-0.1.14.min.js | 2 +- lib/genetic.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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