Browse Source

Use asBrush in Web sample code.

Herby Vojčík 4 years ago
parent
commit
0ebbb1e550
2 changed files with 3 additions and 5 deletions
  1. 2 4
      grunt-init-project/root/src/name.st
  2. 1 1
      grunt-init-project/template.js

+ 2 - 4
grunt-init-project/root/src/name.st

@@ -11,9 +11,7 @@ alert: aString after: aNumberOfMilliseconds
 !
 
 doAmberWith
-	| tag |
-	tag := (HTMLCanvas onJQuery: '#output-list' asJQuery) root.
-	tag with: [ :html | html li with: 'Amber Web #with: added me!!' ]
+	'#output-list' asBrush with: [ :html | html li: 'Amber Web #with: added me!!' ]
 !
 
 doConsoleLog
@@ -54,7 +52,7 @@ augmentPage
     '#lambda-status' asSilk on: #click bind: [ self doInspectStatus ].
 	'#console-log' asSilk on: #click bind: [ self doConsoleLog ].
 	'#timeout-alert' asSilk on: #click bind: [ self alert: 'REMINDER!!' after: 5000 ].
-	'#amber-with' asJQuery click: [ self doAmberWith ].
+	'#amber-with' asBrush onClick: [ self doAmberWith ].
 	'#silk-tag' asSilk on: #click bind: [ self doSilkTAG ].
 	'#jquery-append' asJQuery click: [ self doJQueryAppend ]
 ! !

+ 1 - 1
grunt-init-project/template.js

@@ -117,7 +117,7 @@ exports.template = function (grunt, init, done) {
         props.keywords = ['Amber', 'Smalltalk'];
         props.dependencies = {
             "@ambers/contrib-jquery": "^0.6.0",
-            "@ambers/contrib-web": "^0.7.0",
+            "@ambers/contrib-web": "^0.7.1",
             "@ambers/lang": "^0.24.0",
             "@ambers/domite": "^0.9.0",
             "es6-promise": "^4.2.6",