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 ) { |
AFAIK,
nullresults in an exception and""string turns into"#"string:pts/src/Canvas.ts
Lines 55 to 57 in 0f350d4
This seems to make the
create a default canvascase code completely unreachable:pts/src/Canvas.ts
Lines 62 to 63 in 0f350d4