浏览代码

Move to <inlineJS: '...'>.

Herbert Vojčík 7 年之前
父节点
当前提交
80aec337b3
共有 4 个文件被更改,包括 14 次插入14 次删除
  1. 2 2
      src/Helios-Core.js
  2. 3 3
      src/Helios-Core.st
  3. 5 5
      src/Helios-Workspace.js
  4. 4 4
      src/Helios-Workspace.st

+ 2 - 2
src/Helios-Core.js

@@ -3449,7 +3449,7 @@ return self;
 },
 //>>excludeStart("ide", pragmas.excludeIdeData);
 args: ["aListItem"],
-source: "positionOf: aListItem\x0a\x09<\x0a    \x09return aListItem.parent().children().get().indexOf(aListItem.get(0)) + 1\x0a\x09>",
+source: "positionOf: aListItem\x0a\x09<inlineJS: '\x0a    \x09return aListItem.parent().children().get().indexOf(aListItem.get(0)) + 1\x0a\x09'>",
 referencedClasses: [],
 //>>excludeEnd("ide");
 messageSends: []
@@ -5749,7 +5749,7 @@ return self;
 },
 //>>excludeStart("ide", pragmas.excludeIdeData);
 args: [],
-source: "removeBeforeUnloadMessage\x0a\x09<window.onbeforeunload = null>",
+source: "removeBeforeUnloadMessage\x0a\x09<inlineJS: 'window.onbeforeunload = null'>",
 referencedClasses: [],
 //>>excludeEnd("ide");
 messageSends: []

+ 3 - 3
src/Helios-Core.st

@@ -781,9 +781,9 @@ listCssClassForItem: anObject
 !
 
 positionOf: aListItem
-	<
+	<inlineJS: '
     	return aListItem.parent().children().get().indexOf(aListItem.get(0)) + 1
-	>
+	'>
 !
 
 selectedItem
@@ -1300,7 +1300,7 @@ removeActiveTab
 !
 
 removeBeforeUnloadMessage
-	<window.onbeforeunload = null>
+	<inlineJS: 'window.onbeforeunload = null'>
 !
 
 removeTabForWidget: aWidget

+ 5 - 5
src/Helios-Workspace.js

@@ -1477,7 +1477,7 @@ var self=this;
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 return $core.withContext(function($ctx1) {
 //>>excludeEnd("ctx");
-self['@editor'] = self._class()._codeMirror().fromTextArea(aTextarea, self._editorOptions());
+self["@editor"] = self._class()._codeMirror().fromTextArea(aTextarea, self._editorOptions());
 return self;
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 }, function($ctx1) {$ctx1.fill(self,"setEditorOn:",{aTextarea:aTextarea},$globals.HLCodeWidget)});
@@ -1485,7 +1485,7 @@ return self;
 },
 //>>excludeStart("ide", pragmas.excludeIdeData);
 args: ["aTextarea"],
-source: "setEditorOn: aTextarea\x0a\x09<self['@editor'] = self._class()._codeMirror().fromTextArea(aTextarea, self._editorOptions())>",
+source: "setEditorOn: aTextarea\x0a\x09<inlineJS: 'self[\x22@editor\x22] = self._class()._codeMirror().fromTextArea(aTextarea, self._editorOptions())'>",
 referencedClasses: [],
 //>>excludeEnd("ide");
 messageSends: []
@@ -1834,7 +1834,7 @@ return self;
 },
 //>>excludeStart("ide", pragmas.excludeIdeData);
 args: [],
-source: "setupCodeMirror\x0a\x09<\x0a\x09\x09var codeMirror = self._codeMirror();\x0a\x09\x09codeMirror.keyMap[\x22default\x22].fallthrough = [\x22basic\x22];\x0a\x09\x09codeMirror.commands.autocomplete = function(cm) {\x0a\x09\x09\x09codeMirror.showHint(cm, self._hintFor_options_.bind(self));\x0a\x09\x09}\x0a\x09>",
+source: "setupCodeMirror\x0a\x09<inlineJS: '\x0a\x09\x09var codeMirror = self._codeMirror();\x0a\x09\x09codeMirror.keyMap[\x22default\x22].fallthrough = [\x22basic\x22];\x0a\x09\x09codeMirror.commands.autocomplete = function(cm) {\x0a\x09\x09\x09codeMirror.showHint(cm, self._hintFor_options_.bind(self));\x0a\x09\x09}\x0a\x09'>",
 referencedClasses: [],
 //>>excludeEnd("ide");
 messageSends: []
@@ -1948,7 +1948,7 @@ var self=this;
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 return $core.withContext(function($ctx1) {
 //>>excludeEnd("ctx");
-self._codeMirror().keyMap['Amber'] = self._keyMap();
+self._codeMirror().keyMap["Amber"] = self._keyMap();
 return self;
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 }, function($ctx1) {$ctx1.fill(self,"setupKeyMaps",{},$globals.HLCodeWidget.klass)});
@@ -1956,7 +1956,7 @@ return self;
 },
 //>>excludeStart("ide", pragmas.excludeIdeData);
 args: [],
-source: "setupKeyMaps\x0a\x09<self._codeMirror().keyMap['Amber'] = self._keyMap()>",
+source: "setupKeyMaps\x0a\x09<inlineJS: 'self._codeMirror().keyMap[\x22Amber\x22] = self._keyMap()'>",
 referencedClasses: [],
 //>>excludeEnd("ide");
 messageSends: []

+ 4 - 4
src/Helios-Workspace.st

@@ -234,7 +234,7 @@ saveIt
 !
 
 setEditorOn: aTextarea
-	<self['@editor'] = self._class()._codeMirror().fromTextArea(aTextarea, self._editorOptions())>
+	<inlineJS: 'self["@editor"] = self._class()._codeMirror().fromTextArea(aTextarea, self._editorOptions())'>
 ! !
 
 !HLCodeWidget methodsFor: 'hints'!
@@ -470,13 +470,13 @@ initialize
 !
 
 setupCodeMirror
-	<
+	<inlineJS: '
 		var codeMirror = self._codeMirror();
 		codeMirror.keyMap["default"].fallthrough = ["basic"];
 		codeMirror.commands.autocomplete = function(cm) {
 			codeMirror.showHint(cm, self._hintFor_options_.bind(self));
 		}
-	>
+	'>
 !
 
 setupCommands
@@ -489,7 +489,7 @@ setupCommands
 !
 
 setupKeyMaps
-	<self._codeMirror().keyMap['Amber'] = self._keyMap()>
+	<inlineJS: 'self._codeMirror().keyMap["Amber"] = self._keyMap()'>
 ! !
 
 HLCodeWidget subclass: #HLNavigationCodeWidget