Comparing version 1.0.5 to 1.0.6
@@ -109,3 +109,11 @@ "use strict" | ||
code.push(["aproto.length=",dimension].join("")) | ||
var array_elements = [] | ||
for(var i=0; i<dimension; ++i) { | ||
array_elements.push(["this._v._", prop, i].join("")) | ||
} | ||
code.push(["aproto.toJSON=function ", arrayName, "_toJSON(){return [", array_elements.join(","), "]}"].join("")) | ||
code.push(["aproto.toString=function ", arrayName, "_toJSON(){return [", array_elements.join(","), "].join()}"].join("")) | ||
for(var i=0; i<dimension; ++i) { | ||
code.push(["Object.defineProperty(aproto,", i, ",{get:function(){return this._v._", prop, i, "},set:function(v){return this._v._", prop, i, "=v|0},enumerable:true})"].join("")) | ||
@@ -112,0 +120,0 @@ } |
{ | ||
"name": "ndarray", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Multidimensional Arrays", | ||
@@ -5,0 +5,0 @@ "main": "ndarray.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20621
311