Bladeren bron

Move ivars from `obj["@x"]` to `obj.x`.

Step 3: Inline JS.
Herby Vojčík 5 jaren geleden
bovenliggende
commit
91f6cf6365
2 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 2 2
      src/IDE.js
  2. 1 1
      src/IDE.st

+ 2 - 2
src/IDE.js

@@ -1294,7 +1294,7 @@ var self=this,$self=this;
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 return $core.withContext(function($ctx1) {
 //>>excludeEnd("ctx");
-$self["@editor"] = codeMirrorLib.fromTextArea(aTextarea, {
+$self.editor = codeMirrorLib.fromTextArea(aTextarea, {
 		theme: "ide.codeMirrorTheme"._settingValueIfAbsent_("default"),
 		mode: "text/x-stsrc",
 		lineNumbers: true,
@@ -1311,7 +1311,7 @@ return self;
 },
 //>>excludeStart("ide", pragmas.excludeIdeData);
 args: ["aTextarea"],
-source: "setEditorOn: aTextarea\x0a\x09<inlineJS: '$self[\x22@editor\x22] = codeMirrorLib.fromTextArea(aTextarea, {\x0a\x09\x09theme: \x22ide.codeMirrorTheme\x22._settingValueIfAbsent_(\x22default\x22),\x0a\x09\x09mode: \x22text/x-stsrc\x22,\x0a\x09\x09lineNumbers: true,\x0a\x09\x09enterMode: \x22flat\x22,\x0a\x09\x09indentWithTabs: true,\x0a\x09\x09indentUnit: 4,\x0a\x09\x09matchBrackets: true,\x0a\x09\x09electricChars: false\x0a\x09})'>",
+source: "setEditorOn: aTextarea\x0a\x09<inlineJS: '$self.editor = codeMirrorLib.fromTextArea(aTextarea, {\x0a\x09\x09theme: \x22ide.codeMirrorTheme\x22._settingValueIfAbsent_(\x22default\x22),\x0a\x09\x09mode: \x22text/x-stsrc\x22,\x0a\x09\x09lineNumbers: true,\x0a\x09\x09enterMode: \x22flat\x22,\x0a\x09\x09indentWithTabs: true,\x0a\x09\x09indentUnit: 4,\x0a\x09\x09matchBrackets: true,\x0a\x09\x09electricChars: false\x0a\x09})'>",
 referencedClasses: [],
 //>>excludeEnd("ide");
 messageSends: []

+ 1 - 1
src/IDE.st

@@ -210,7 +210,7 @@ selection
 !
 
 setEditorOn: aTextarea
-	<inlineJS: '$self["@editor"] = codeMirrorLib.fromTextArea(aTextarea, {
+	<inlineJS: '$self.editor = codeMirrorLib.fromTextArea(aTextarea, {
 		theme: "ide.codeMirrorTheme"._settingValueIfAbsent_("default"),
 		mode: "text/x-stsrc",
 		lineNumbers: true,