Browse Source

Playground: Fix NodePrototypes being available across load/save-cycles (#28030)

abc013 1 year ago
parent
commit
7a87e2231c
1 changed files with 6 additions and 0 deletions
  1. 6 0
      playground/editors/NodePrototypeEditor.js

+ 6 - 0
playground/editors/NodePrototypeEditor.js

@@ -87,6 +87,12 @@ export class NodePrototypeEditor extends JavaScriptEditor {
 
 	setEditor( editor ) {
 
+		if ( editor === null && this.editor ) {
+
+			this.editor.removeClass( this._prototype );
+
+		}
+
 		super.setEditor( editor );
 
 		if ( editor === null ) {