Parcourir la source

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

abc013 il y a 2 ans
Parent
commit
7a87e2231c
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  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 ) {

粤ICP备19079148号