The min variable isn't declared in the RG.arrayMin function

Share RGraph:   To help my Google visibility (it can't get much worse!), if you like and use RGraph I'd appreciate it if you could link to me

« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by Jan Dirk on 28th April 2016
Hello support,

While running in 'strict mode', I got an exception that the variable min was not declared, while calling RG.arrayMin.
Indeed, there is probably copy/paste issue here, because the variable max should probably be the variable min.

Regards,

Jan Dirk

Patch on RGraph.common.core.js
@@ -488,7 +488,7 @@
      */
      RG.arrayMin = function (arr)
      {
- var min = null,
+ var max = null,
              ma = Math;

          if (typeof arr === 'number') {
Posted by Richard on 28th April 2016
Hi there,

Thanks - I've added that in. I've just checked though - and it doesn't seem that that function is currently being used! Oh well.





Richard

Add a reply




« Back to message list