Browse Source

TagBrush >> asDomNode, use it instead of element.

Herbert Vojčík 7 years ago
parent
commit
aff5f00013
3 changed files with 6 additions and 6 deletions
  1. 2 2
      bower.json
  2. 3 3
      src/IDE.js
  3. 1 1
      src/IDE.st

+ 2 - 2
bower.json

@@ -20,8 +20,8 @@
     ],
     "private": false,
     "dependencies": {
-        "amber": ">=0.15.0",
-        "amber-contrib-web": ">=0.3.0",
+        "amber": ">0.18.1",
+        "amber-contrib-web": ">=0.4.0",
         "jquery-ui": ">=1.9.2",
         "codemirror": "^5.10.0",
         "require-css": "^0.1.2"

+ 3 - 3
src/IDE.js

@@ -1244,7 +1244,7 @@ return textarea;
 }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
 //>>excludeEnd("ctx");
 }));
-self._setEditorOn_($recv(textarea)._element());
+self._setEditorOn_($recv(textarea)._asDomNode());
 $recv(self["@div"])._onKeyDown_((function(e){
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 return $core.withContext(function($ctx2) {
@@ -1261,10 +1261,10 @@ return self;
 },
 //>>excludeStart("ide", pragmas.excludeIdeData);
 args: ["html"],
-source: "renderOn: html\x0a\x09| textarea |\x0a\x09div := html div class: 'source'.\x0a\x09div with: [ textarea := html textarea ].\x0a\x09self setEditorOn: textarea element.\x0a\x09div onKeyDown: [ :e | self handleKeyDown: e ]",
+source: "renderOn: html\x0a\x09| textarea |\x0a\x09div := html div class: 'source'.\x0a\x09div with: [ textarea := html textarea ].\x0a\x09self setEditorOn: textarea asDomNode.\x0a\x09div onKeyDown: [ :e | self handleKeyDown: e ]",
 referencedClasses: [],
 //>>excludeEnd("ide");
-messageSends: ["class:", "div", "with:", "textarea", "setEditorOn:", "element", "onKeyDown:", "handleKeyDown:"]
+messageSends: ["class:", "div", "with:", "textarea", "setEditorOn:", "asDomNode", "onKeyDown:", "handleKeyDown:"]
 }),
 $globals.SourceArea);
 

+ 1 - 1
src/IDE.st

@@ -324,7 +324,7 @@ renderOn: html
 	| textarea |
 	div := html div class: 'source'.
 	div with: [ textarea := html textarea ].
-	self setEditorOn: textarea element.
+	self setEditorOn: textarea asDomNode.
 	div onKeyDown: [ :e | self handleKeyDown: e ]
 ! !