@@ -384,7 +384,7 @@ function getConfig(widgetName) {
384384 )
385385}
386386
387- function isConvertableWidget ( widget , config ) {
387+ function isConvertibleWidget ( widget , config ) {
388388 return (
389389 ( VALID_TYPES . includes ( widget . type ) || VALID_TYPES . includes ( config [ 0 ] ) ) &&
390390 ! widget . options ?. forceInput
@@ -485,7 +485,7 @@ function isValidCombo(combo, obj) {
485485 console . log ( `connection rejected: tried to connect combo to ${ obj } ` )
486486 return false
487487 }
488- // New imput combo has a different size
488+ // New input combo has a different size
489489 if ( combo . length !== obj . length ) {
490490 console . log ( `connection rejected: combo lists dont match` )
491491 return false
@@ -670,14 +670,14 @@ app.registerExtension({
670670 } )
671671 } ,
672672 async beforeRegisterNodeDef ( nodeType , nodeData , app ) {
673- // Add menu options to conver to/from widgets
673+ // Add menu options to convert to/from widgets
674674 const origGetExtraMenuOptions = nodeType . prototype . getExtraMenuOptions
675675 nodeType . prototype . convertWidgetToInput = function ( widget ) {
676676 const config = getConfig . call ( this , widget . name ) ?? [
677677 widget . type ,
678678 widget . options || { }
679679 ]
680- if ( ! isConvertableWidget ( widget , config ) ) return false
680+ if ( ! isConvertibleWidget ( widget , config ) ) return false
681681 convertToInput ( this , widget , config )
682682 return true
683683 }
@@ -703,7 +703,7 @@ app.registerExtension({
703703 w . type ,
704704 w . options || { }
705705 ]
706- if ( isConvertableWidget ( w , config ) ) {
706+ if ( isConvertibleWidget ( w , config ) ) {
707707 toInput . push ( {
708708 content : `Convert ${ w . name } to input` ,
709709 callback : ( ) => convertToInput ( this , w , config )
0 commit comments