Skip to content

Commit 374e72f

Browse files
committed
Fixes
1 parent bb1ce7b commit 374e72f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/litegraph.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8289,7 +8289,7 @@ LGraphNode.prototype.executeAction = function(action)
82898289
var v = w.value;
82908290
if( w.options.values )
82918291
{
8292-
var values = w.options.values;
8292+
var values = w.options.values || {};
82938293
if( values.constructor === Function )
82948294
values = values();
82958295
if(values && values.constructor !== Array)
@@ -10113,7 +10113,7 @@ LGraphNode.prototype.executeAction = function(action)
1011310113

1011410114
//API *************************************************
1011510115
//like rect but rounded corners
10116-
if (this.CanvasRenderingContext2D) {
10116+
if (window.CanvasRenderingContext2D) {
1011710117
CanvasRenderingContext2D.prototype.roundRect = function(
1011810118
x,
1011910119
y,

0 commit comments

Comments
 (0)