diff options
Diffstat (limited to 'js/matrix.js')
| -rw-r--r-- | js/matrix.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/matrix.js b/js/matrix.js index 8108568..a36d3db 100644 --- a/js/matrix.js +++ b/js/matrix.js @@ -5,7 +5,7 @@ function Matrix (w,h,f){ this.initialize() } Matrix.prototype.initialize = function(){ - var w = this.w, h = this.h, f = this.f + var w = this.w || 1, h = this.h || 1, f = this.f var aa = new Array (h) for (var i = 0; i < h; i++) { aa[i] = new Array (w) |
