From fb2487b235bdd5d6a0e31ac7db6a49e377fc14d2 Mon Sep 17 00:00:00 2001 From: Nathan Fritzler Date: Thu, 17 Feb 2022 22:48:46 -0700 Subject: [PATCH] Ensure that set_height doesn't cash a string --- package.json | 2 +- pixelmanipulator.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index d5d44c0d..f5ab63b2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pixelmanipulator", - "version": "4.6.0", + "version": "4.6.1", "description": "Run any cellular automata on an html5 canvas.", "main": "pixelmanipulator.js", "repository": "git@github.com:Lazerbeak12345/pixelmanipulator.git", diff --git a/pixelmanipulator.js b/pixelmanipulator.js index 2133bed6..ad9a0e54 100644 --- a/pixelmanipulator.js +++ b/pixelmanipulator.js @@ -17,7 +17,7 @@ // Concerning the function commments, # is number, [] means array, {} means object, () means function, true means boolean and, "" means string. ? means optional, seperated with : means that it could be one or the other (function(g) { 'use strict'; - var pxversion="4.6.0"; + var pxversion="4.6.1"; function pix(require,exports,module) {//done like this for better support for things like require.js and Dojo /*function ret(v) { return (function() { @@ -43,14 +43,14 @@ }, set_width:function(value){ innerP.canvas.width=value - innerP._width=value + innerP._width=value-0 }, get_height:function(){ return innerP._height }, set_height:function(value){ innerP.canvas.height=value - innerP._height=value + innerP._height=value-0 }, row:0, //__oldDraw:false,