Skip to content

Commit

Permalink
2.0.5 improves isObject condition to not allow null values
Browse files Browse the repository at this point in the history
  • Loading branch information
nakednous committed Oct 31, 2023
1 parent 88564e4 commit ae578ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions p5.quadrille.js
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ class Quadrille {
}

static _isObject(value) {
return typeof value === 'object';
return value !== null && typeof value === 'object';
}

static _isImage(value) {
Expand Down Expand Up @@ -1565,7 +1565,7 @@ class Quadrille {
const INFO =
{
LIBRARY: 'p5.quadrille.js',
VERSION: '2.0.4',
VERSION: '2.0.5',
HOMEPAGE: 'https://github.com/objetos/p5.quadrille.js'
};

Expand Down

0 comments on commit ae578ea

Please sign in to comment.