mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-09-27 00:29:00 +02:00
static property fix
This commit is contained in:
@@ -37,8 +37,6 @@ CustomElement.register(class ProgramCode extends HTMLElement {});
|
||||
* Our custom element
|
||||
*/
|
||||
class GraphicsElement extends CustomElement {
|
||||
static DEBUG = false;
|
||||
|
||||
/**
|
||||
* Create an instance of this element
|
||||
*/
|
||||
@@ -347,8 +345,12 @@ class GraphicsElement extends CustomElement {
|
||||
}
|
||||
}
|
||||
|
||||
// Register our custom element
|
||||
CustomElement.register(GraphicsElement);
|
||||
|
||||
// static property to regular debugging
|
||||
GraphicsElement.DEBUG = false;
|
||||
|
||||
// debugging should be behind a flag
|
||||
function debugLog(...data) {
|
||||
if (GraphicsElement.DEBUG) {
|
||||
|
Reference in New Issue
Block a user