AFAIK, null results in an exception and "" string turns into "#" string:
|
} else { |
|
let id = <string>elem; |
|
id = ( elem[0] === "#" || elem[0] === "." ) ? elem : "#" + elem; |
This seems to make the create a default canvas case code completely unreachable:
|
// if selector is not defined, create a default canvas |
|
if ( !_selector ) { |