Explorar o código

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

abc013 hai 1 ano
pai
achega
7a87e2231c
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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 ) {