Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix distribution syntax bug

  • Loading branch information...
commit f9ab147d532f3efe72aefba970665fa1db492381 1 parent 8fb4315
@trevnorris trevnorris authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/distribution.js
View
5 src/distribution.js
@@ -36,8 +36,9 @@
var a = this._a,
b = this._b,
c = this._c;
- if ( isNaN( x )) {
- return jStat.fn.map.call( this.data, function( x ) {
+ if ( !x ) x = this.data;
+ if ( typeof x !== 'number' ) {
+ return jStat.fn.map.call( x, function( x ) {
return jStat[ func ][ fnfunc ]( x, a, b, c );
});
}
Please sign in to comment.
Something went wrong with that request. Please try again.