[Pkg-javascript-commits] [science.js] 71/87: Fix dangling global.

bhuvan krishna bhuvan-guest at moszumanska.debian.org
Thu Dec 8 06:12:04 UTC 2016


This is an automated email from the git hooks/post-receive script.

bhuvan-guest pushed a commit to branch master
in repository science.js.

commit 226ee8438cba44a27435d012cb5f208f2e47842b
Author: Jason Davies <jason at jasondavies.com>
Date:   Fri May 11 18:21:48 2012 +0100

    Fix dangling global.
---
 science.v1.js         | 2 +-
 science.v1.min.js     | 2 +-
 src/stats/hcluster.js | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/science.v1.js b/science.v1.js
index d999051..7fa24d1 100644
--- a/science.v1.js
+++ b/science.v1.js
@@ -1344,7 +1344,7 @@ science.stats.hcluster = function() {
       c1Cluster = clusters[c1][0];
       c2Cluster = clusters[c2][0];
 
-      newCluster = {
+      var newCluster = {
         left: c1Cluster,
         right: c2Cluster,
         dist: distMatrix[c1][c2],
diff --git a/science.v1.min.js b/science.v1.min.js
index 6050be7..71fd801 100644
--- a/science.v1.min.js
+++ b/science.v1.min.js
@@ -1 +1 @@
-(function(a){(function(a){science={version:"1.9.1"},science.ascending=function(a,b){return a-b},science.EULER=.5772156649015329,science.expm1=function(a){return a<1e-5&&a>-0.00001?a+.5*a*a:Math.exp(a)-1},science.functor=function(a){return typeof a=="function"?a:function(){return a}},science.hypot=function(a,b){a=Math.abs(a),b=Math.abs(b);var c,d;a>b?(c=a,d=b):(c=b,d=a);var e=d/c;return c*Math.sqrt(1+e*e)},science.quadratic=function(){function b(b,c,d){var e=c*c-4*b*d;return e>0?(e=Math.s [...]
\ No newline at end of file
+(function(a){(function(a){science={version:"1.9.1"},science.ascending=function(a,b){return a-b},science.EULER=.5772156649015329,science.expm1=function(a){return a<1e-5&&a>-0.00001?a+.5*a*a:Math.exp(a)-1},science.functor=function(a){return typeof a=="function"?a:function(){return a}},science.hypot=function(a,b){a=Math.abs(a),b=Math.abs(b);var c,d;a>b?(c=a,d=b):(c=b,d=a);var e=d/c;return c*Math.sqrt(1+e*e)},science.quadratic=function(){function b(b,c,d){var e=c*c-4*b*d;return e>0?(e=Math.s [...]
\ No newline at end of file
diff --git a/src/stats/hcluster.js b/src/stats/hcluster.js
index 9ab7bc4..fb7d05b 100644
--- a/src/stats/hcluster.js
+++ b/src/stats/hcluster.js
@@ -54,7 +54,7 @@ science.stats.hcluster = function() {
       c1Cluster = clusters[c1][0];
       c2Cluster = clusters[c2][0];
 
-      newCluster = {
+      var newCluster = {
         left: c1Cluster,
         right: c2Cluster,
         dist: distMatrix[c1][c2],

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/science.js.git



More information about the Pkg-javascript-commits mailing list