Преглед на файлове

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

abc013 преди 1 година
родител
ревизия
7a87e2231c
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  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 ) {