Browse Source

Merge pull request #24 from mkroehnert/grunt

Amber update + recompilation
Manfred Kröhnert 11 years ago
parent
commit
8d73c4e9a2

+ 1 - 1
nodejs/pystone/Pystone.st

@@ -77,7 +77,7 @@ ptrComp: p discr: d enumComp: e intComp: i stringComp: s
 
 Object subclass: #Pystone
 	instanceVariableNames: 'nulltime ptrGlbNext ptrGlb ident1 ident3 ident2 ident4 ident5 ident6 intGlob boolGlob char1Glob char2Glob array1Glob array2Glob func3 func2 func1'
-	category: 'Pystone'!
+	package: 'Pystone'!
 !Pystone commentStamp!
 This is a straight translation of pystone 1.1 from Python to Squeak. Procedures have been mapped to instance side methods, functions have been mapped to blocks. Open a transcript and run:
 

+ 2 - 1
presentation/Gruntfile.js

@@ -14,7 +14,8 @@ module.exports = function(grunt) {
       presentation: {
         src: ['st/Presentation.st'],
         libraries: ['Canvas'],
-        output_dir: 'js'
+        output_dir: 'js',
+        deploy: true
       }
     }
   });

+ 2 - 2
presentation/js/Presentation.deploy.js

@@ -1630,7 +1630,7 @@ fn: function (){
 var self=this;
 return smalltalk.withContext(function($ctx1) { 
 var $1;
-$1=smalltalk.HashedCollection._fromPairs_(["arrows".__minus_gt(true),"keyboard".__minus_gt(false),"pageNumbers".__minus_gt(false),"closed".__minus_gt(true)]);
+$1=smalltalk.HashedCollection._from_(["arrows".__minus_gt(true),"keyboard".__minus_gt(false),"pageNumbers".__minus_gt(false),"closed".__minus_gt(true)]);
 return $1;
 }, function($ctx1) {$ctx1.fill(self,"bookletOptions",{},smalltalk.FOSDEMBookletSlide)})},
 messageSends: ["->"]}),
@@ -2005,7 +2005,7 @@ selector: "loadTweets",
 fn: function (){
 var self=this;
 return smalltalk.withContext(function($ctx1) { 
-_st(jQuery)._ajax_options_("http://search.twitter.com/search.json?rpp=3&q=%40AmberSmalltalk",smalltalk.HashedCollection._fromPairs_(["type".__minus_gt("GET"),"success".__minus_gt((function(json){
+_st(jQuery)._ajax_options_("http://search.twitter.com/search.json?rpp=3&q=%40AmberSmalltalk",smalltalk.HashedCollection._from_(["type".__minus_gt("GET"),"success".__minus_gt((function(json){
 return smalltalk.withContext(function($ctx2) {
 return self._renderTweets_(_st(json)._results());
 }, function($ctx2) {$ctx2.fillBlock({json:json},$ctx1)})})),"dataType".__minus_gt("jsonp")]));

+ 2 - 2
presentation/js/Presentation.js

@@ -2111,7 +2111,7 @@ fn: function (){
 var self=this;
 return smalltalk.withContext(function($ctx1) { 
 var $1;
-$1=smalltalk.HashedCollection._fromPairs_(["arrows".__minus_gt(true),"keyboard".__minus_gt(false),"pageNumbers".__minus_gt(false),"closed".__minus_gt(true)]);
+$1=smalltalk.HashedCollection._from_(["arrows".__minus_gt(true),"keyboard".__minus_gt(false),"pageNumbers".__minus_gt(false),"closed".__minus_gt(true)]);
 return $1;
 }, function($ctx1) {$ctx1.fill(self,"bookletOptions",{},smalltalk.FOSDEMBookletSlide)})},
 args: [],
@@ -2591,7 +2591,7 @@ category: 'callback',
 fn: function (){
 var self=this;
 return smalltalk.withContext(function($ctx1) { 
-_st(jQuery)._ajax_options_("http://search.twitter.com/search.json?rpp=3&q=%40AmberSmalltalk",smalltalk.HashedCollection._fromPairs_(["type".__minus_gt("GET"),"success".__minus_gt((function(json){
+_st(jQuery)._ajax_options_("http://search.twitter.com/search.json?rpp=3&q=%40AmberSmalltalk",smalltalk.HashedCollection._from_(["type".__minus_gt("GET"),"success".__minus_gt((function(json){
 return smalltalk.withContext(function($ctx2) {
 return self._renderTweets_(_st(json)._results());
 }, function($ctx2) {$ctx2.fillBlock({json:json},$ctx1)})})),"dataType".__minus_gt("jsonp")]));

+ 2 - 1
processing/Gruntfile.js

@@ -13,7 +13,8 @@ module.exports = function(grunt) {
       },
       processing: {
         src: ['st/Processing-Examples.st'],
-        output_dir: 'js'
+        output_dir: 'js',
+        deploy: true
       }
     }
   });

+ 32 - 27
processing/js/Processing-Examples.deploy.js

@@ -1,100 +1,105 @@
-smalltalk.addPackage('Processing-Examples', {});
+smalltalk.addPackage('Processing-Examples');
 smalltalk.addClass('ProcessingClock', smalltalk.Object, ['processing', 'centerX', 'centerY', 'maxArmLength'], 'Processing-Examples');
 smalltalk.addMethod(
-"_draw",
 smalltalk.method({
 selector: "draw",
 fn: function (){
 var self=this;
 var drawBlock;
-return smalltalk.withContext(function($ctx1) { 
var $1;
+function $Date(){return smalltalk.Date||(typeof Date=="undefined"?nil:Date)}
+return smalltalk.withContext(function($ctx1) { 
+var $1;
 drawBlock=(function(){
 var now,hoursPosition,minutesPosition,secondsPosition;
-return smalltalk.withContext(function($ctx2) {
_st(self["@processing"])._background_((224));
-now=_st((smalltalk.Date || Date))._new();
+return smalltalk.withContext(function($ctx2) {
+_st(self["@processing"])._background_((224));
+now=_st($Date())._new();
 now;
 hoursPosition=_st(_st(_st(_st(_st(now)._hours()).__backslash_backslash((12))).__plus(_st(now)._minutes())).__slash((60))).__slash((12));
 hoursPosition;
-_st(self)._drawArm_lengthScale_weight_(hoursPosition,(0.5),(5));
+self._drawArm_lengthScale_weight_(hoursPosition,(0.5),(5));
 minutesPosition=_st(_st(_st(_st(now)._minutes()).__plus(_st(now)._seconds())).__slash((60))).__slash((60));
 minutesPosition;
-_st(self)._drawArm_lengthScale_weight_(minutesPosition,(0.8),(3));
+self._drawArm_lengthScale_weight_(minutesPosition,(0.8),(3));
 secondsPosition=_st(_st(now)._seconds()).__slash((60));
 secondsPosition;
-return _st(self)._drawArm_lengthScale_weight_(secondsPosition,(0.9),(1));
+return self._drawArm_lengthScale_weight_(secondsPosition,(0.9),(1));
 }, function($ctx2) {$ctx2.fillBlock({now:now,hoursPosition:hoursPosition,minutesPosition:minutesPosition,secondsPosition:secondsPosition},$ctx1)})});
 $1=drawBlock;
 return $1;
-}, function($ctx1) {$ctx1.fill(self,"draw",{drawBlock:drawBlock}, smalltalk.ProcessingClock)})},
+}, function($ctx1) {$ctx1.fill(self,"draw",{drawBlock:drawBlock},smalltalk.ProcessingClock)})},
 messageSends: ["background:", "new", "/", "+", "minutes", "\x5c\x5c", "hours", "drawArm:lengthScale:weight:", "seconds"]}),
 smalltalk.ProcessingClock);
 
 smalltalk.addMethod(
-"_drawArm_lengthScale_weight_",
 smalltalk.method({
 selector: "drawArm:lengthScale:weight:",
 fn: function (aPosition,aLengthScale,aWeight){
 var self=this;
 var myDX,myDY;
-return smalltalk.withContext(function($ctx1) { 
_st(self["@processing"])._strokeWeight_(aWeight);
-myDX=_st(self["@centerX"]).__plus(_st(_st(_st((smalltalk.Math || Math))._sin_(_st(_st(aPosition).__star((2))).__star(_st((smalltalk.Math || Math))._PI()))).__star(aLengthScale)).__star(self["@maxArmLength"]));
-myDY=_st(self["@centerY"]).__minus(_st(_st(_st((smalltalk.Math || Math))._cos_(_st(_st(aPosition).__star((2))).__star(_st((smalltalk.Math || Math))._PI()))).__star(aLengthScale)).__star(self["@maxArmLength"]));
+function $Math(){return smalltalk.Math||(typeof Math=="undefined"?nil:Math)}
+return smalltalk.withContext(function($ctx1) { 
+_st(self["@processing"])._strokeWeight_(aWeight);
+myDX=_st(self["@centerX"]).__plus(_st(_st(_st($Math())._sin_(_st(_st(aPosition).__star((2))).__star(_st($Math())._PI()))).__star(aLengthScale)).__star(self["@maxArmLength"]));
+myDY=_st(self["@centerY"]).__minus(_st(_st(_st($Math())._cos_(_st(_st(aPosition).__star((2))).__star(_st($Math())._PI()))).__star(aLengthScale)).__star(self["@maxArmLength"]));
 _st(self["@processing"])._line_y_dX_dy_(self["@centerX"],self["@centerY"],myDX,myDY);
-return self}, function($ctx1) {$ctx1.fill(self,"drawArm:lengthScale:weight:",{aPosition:aPosition,aLengthScale:aLengthScale,aWeight:aWeight,myDX:myDX,myDY:myDY}, smalltalk.ProcessingClock)})},
+return self}, function($ctx1) {$ctx1.fill(self,"drawArm:lengthScale:weight:",{aPosition:aPosition,aLengthScale:aLengthScale,aWeight:aWeight,myDX:myDX,myDY:myDY},smalltalk.ProcessingClock)})},
 messageSends: ["strokeWeight:", "+", "*", "sin:", "PI", "-", "cos:", "line:y:dX:dy:"]}),
 smalltalk.ProcessingClock);
 
 smalltalk.addMethod(
-"_firstProcessingInstance",
 smalltalk.method({
 selector: "firstProcessingInstance",
 fn: function (){
 var self=this;
-return smalltalk.withContext(function($ctx1) { 
return Processing.instances[0];
-return self}, function($ctx1) {$ctx1.fill(self,"firstProcessingInstance",{}, smalltalk.ProcessingClock)})},
+return smalltalk.withContext(function($ctx1) { 
+return Processing.instances[0];
+return self}, function($ctx1) {$ctx1.fill(self,"firstProcessingInstance",{},smalltalk.ProcessingClock)})},
 messageSends: []}),
 smalltalk.ProcessingClock);
 
 smalltalk.addMethod(
-"_initialize",
 smalltalk.method({
 selector: "initialize",
 fn: function (){
 var self=this;
-return smalltalk.withContext(function($ctx1) { 
self["@processing"]=_st(self)._firstProcessingInstance();
+function $Math(){return smalltalk.Math||(typeof Math=="undefined"?nil:Math)}
+return smalltalk.withContext(function($ctx1) { 
+self["@processing"]=self._firstProcessingInstance();
 self["@centerX"]=_st(_st(self["@processing"])._width()).__slash((2));
 self["@centerY"]=_st(_st(self["@processing"])._height()).__slash((2));
-self["@maxArmLength"]=_st((smalltalk.Math || Math))._min_or_(self["@centerX"],self["@centerY"]);
-return self}, function($ctx1) {$ctx1.fill(self,"initialize",{}, smalltalk.ProcessingClock)})},
+self["@maxArmLength"]=_st($Math())._min_or_(self["@centerX"],self["@centerY"]);
+return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.ProcessingClock)})},
 messageSends: ["firstProcessingInstance", "/", "width", "height", "min:or:"]}),
 smalltalk.ProcessingClock);
 
 smalltalk.addMethod(
-"_processing",
 smalltalk.method({
 selector: "processing",
 fn: function (){
 var self=this;
-return smalltalk.withContext(function($ctx1) { 
var $1;
+return smalltalk.withContext(function($ctx1) { 
+var $1;
 $1=self["@processing"];
 return $1;
-}, function($ctx1) {$ctx1.fill(self,"processing",{}, smalltalk.ProcessingClock)})},
+}, function($ctx1) {$ctx1.fill(self,"processing",{},smalltalk.ProcessingClock)})},
 messageSends: []}),
 smalltalk.ProcessingClock);
 
 
 smalltalk.addMethod(
-"_init",
 smalltalk.method({
 selector: "init",
 fn: function (){
 var self=this;
 var clock,processing,block;
-return smalltalk.withContext(function($ctx1) { 
clock=_st((smalltalk.ProcessingClock || ProcessingClock))._new();
+function $ProcessingClock(){return smalltalk.ProcessingClock||(typeof ProcessingClock=="undefined"?nil:ProcessingClock)}
+return smalltalk.withContext(function($ctx1) { 
+clock=_st($ProcessingClock())._new();
 processing=_st(clock)._processing();
 block=_st(clock)._draw();
 _st(processing)._at_put_("draw",block);
-return self}, function($ctx1) {$ctx1.fill(self,"init",{clock:clock,processing:processing,block:block}, smalltalk.ProcessingClock.klass)})},
+return self}, function($ctx1) {$ctx1.fill(self,"init",{clock:clock,processing:processing,block:block},smalltalk.ProcessingClock.klass)})},
 messageSends: ["new", "processing", "draw", "at:put:"]}),
 smalltalk.ProcessingClock.klass);
 

+ 2 - 1
trysmalltalk/Gruntfile.js

@@ -14,7 +14,8 @@ module.exports = function(grunt) {
       trysmalltalk: {
         src: ['st/TrySmalltalk.st'],
         libraries: ['Canvas'],
-        output_dir: 'js'
+        output_dir: 'js',
+        deploy: true
       }
     }
   });

+ 2 - 1
twitterwall/Gruntfile.js

@@ -14,7 +14,8 @@ module.exports = function(grunt) {
       twitterwall: {
         src: ['st/TwitterWall.st'],
         output_dir: 'js',
-        libraries:[ 'Canvas']
+        libraries:[ 'Canvas'],
+        deploy: true
       }
     }
   });

+ 84 - 68
twitterwall/js/TwitterWall.deploy.js

@@ -3,74 +3,74 @@ smalltalk.addClass('Tweet', smalltalk.Widget, ['json'], 'TwitterWall');
 smalltalk.addMethod(
 smalltalk.method({
 selector: "json",
-fn: function () {
-    var self = this;
-    return self['@json'];
-    return self;
-},
+fn: function (){
+var self=this;
+return smalltalk.withContext(function($ctx1) { 
+var $1;
+$1=self["@json"];
+return $1;
+}, function($ctx1) {$ctx1.fill(self,"json",{},smalltalk.Tweet)})},
 messageSends: []}),
 smalltalk.Tweet);
 
 smalltalk.addMethod(
 smalltalk.method({
 selector: "json:",
-fn: function (aJson) {
-    var self = this;
-    self['@json'] = aJson;
-    return self;
-},
+fn: function (aJson){
+var self=this;
+return smalltalk.withContext(function($ctx1) { 
+self["@json"]=aJson;
+return self}, function($ctx1) {$ctx1.fill(self,"json:",{aJson:aJson},smalltalk.Tweet)})},
 messageSends: []}),
 smalltalk.Tweet);
 
 smalltalk.addMethod(
 smalltalk.method({
 selector: "renderOn:",
-fn: function (tr) {
-    var self = this;
-    var tdUser = nil;
-    var tdMessage = nil;
-    var img = nil;
-    var a = nil;
-    var pMessage = nil;
-    var pDate = nil;
-    tdUser = smalltalk.send(smalltalk.send(smalltalk.HTMLCanvas || HTMLCanvas, "_new", []), "_td", []);
-    smalltalk.send(smalltalk.send(tdUser, "_element", []), "_id_", ["user"]);
-    tdMessage = smalltalk.send(smalltalk.send(smalltalk.HTMLCanvas || HTMLCanvas, "_new", []), "_td", []);
-    smalltalk.send(smalltalk.send(tdMessage, "_element", []), "_id_", ["messageBox"]);
-    smalltalk.send(tr, "_append_", [tdUser]);
-    smalltalk.send(tr, "_append_", [tdMessage]);
-    img = smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.HTMLCanvas || HTMLCanvas, "_new", []), "_img", []), "_src_", [smalltalk.send(self['@json'], "_at_", ["profile_image_url"])]);
-    smalltalk.send(smalltalk.send(img, "_element", []), "_title_", [smalltalk.send(self['@json'], "_at_", ["from_user"])]);
-    smalltalk.send(smalltalk.send(img, "_element", []), "_longDesc_", [smalltalk.send(unescape("http%3A//twitter.com/"), "__comma", [smalltalk.send(self['@json'], "_at_", ["from_user"])])]);
-    a = smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.HTMLCanvas || HTMLCanvas, "_new", []), "_a", []), "_href_", [smalltalk.send(unescape("http%3A//twitter.com/"), "__comma", [smalltalk.send(self['@json'], "_at_", ["from_user"])])]);
-    smalltalk.send(a, "_append_", [img]);
-    smalltalk.send(tdUser, "_append_", [a]);
-    pMessage = smalltalk.send(smalltalk.send(smalltalk.HTMLCanvas || HTMLCanvas, "_new", []), "_p", []);
-    smalltalk.send(smalltalk.send(pMessage, "_element", []), "_id_", ["message"]);
-    smalltalk.send(pMessage, "_append_", [smalltalk.send(self['@json'], "_at_", ["text"])]);
-    smalltalk.send(tdMessage, "_append_", [pMessage]);
-    pDate = smalltalk.send(smalltalk.send(smalltalk.HTMLCanvas || HTMLCanvas, "_new", []), "_p", []);
-    smalltalk.send(smalltalk.send(pDate, "_element", []), "_id_", ["date"]);
-    smalltalk.send(pDate, "_append_", [smalltalk.send(self['@json'], "_at_", ["created_at"])]);
-    smalltalk.send(tdMessage, "_append_", [pDate]);
-    return self;
-},
-messageSends: ["td", "new", "id:", "element", "append:", "src:", "img", "at:", "title:", "longDesc:", ",", "href:", "a", "p"]}),
+fn: function (tr){
+var self=this;
+var tdUser,tdMessage,img,a,pMessage,pDate;
+function $HTMLCanvas(){return smalltalk.HTMLCanvas||(typeof HTMLCanvas=="undefined"?nil:HTMLCanvas)}
+return smalltalk.withContext(function($ctx1) { 
+tdUser=_st(_st($HTMLCanvas())._new())._td();
+_st(_st(tdUser)._element())._id_("user");
+tdMessage=_st(_st($HTMLCanvas())._new())._td();
+_st(_st(tdMessage)._element())._id_("messageBox");
+_st(tr)._append_(tdUser);
+_st(tr)._append_(tdMessage);
+img=_st(_st(_st($HTMLCanvas())._new())._img())._src_(_st(self["@json"])._at_("profile_image_url"));
+_st(_st(img)._element())._title_(_st(self["@json"])._at_("from_user"));
+_st(_st(img)._element())._longDesc_("http://twitter.com/".__comma(_st(self["@json"])._at_("from_user")));
+a=_st(_st(_st($HTMLCanvas())._new())._a())._href_("http://twitter.com/".__comma(_st(self["@json"])._at_("from_user")));
+_st(a)._append_(img);
+_st(tdUser)._append_(a);
+pMessage=_st(_st($HTMLCanvas())._new())._p();
+_st(_st(pMessage)._element())._id_("message");
+_st(pMessage)._append_(_st(self["@json"])._at_("text"));
+_st(tdMessage)._append_(pMessage);
+pDate=_st(_st($HTMLCanvas())._new())._p();
+_st(_st(pDate)._element())._id_("date");
+_st(pDate)._append_(_st(self["@json"])._at_("created_at"));
+_st(tdMessage)._append_(pDate);
+return self}, function($ctx1) {$ctx1.fill(self,"renderOn:",{tr:tr,tdUser:tdUser,tdMessage:tdMessage,img:img,a:a,pMessage:pMessage,pDate:pDate},smalltalk.Tweet)})},
+messageSends: ["td", "new", "id:", "element", "append:", "src:", "at:", "img", "title:", "longDesc:", ",", "href:", "a", "p"]}),
 smalltalk.Tweet);
 
 
 smalltalk.addMethod(
 smalltalk.method({
 selector: "openAt:with:",
-fn: function (tr, aJson) {
-    var self = this;
-    var tweet = nil;
-    tweet = smalltalk.send(self, "_new", []);
-    smalltalk.send(tweet, "_json_", [aJson]);
-    smalltalk.send(tweet, "_renderOn_", [tr]);
-    return tr;
-    return self;
-},
+fn: function (tr,aJson){
+var self=this;
+var tweet;
+return smalltalk.withContext(function($ctx1) { 
+var $1;
+tweet=self._new();
+_st(tweet)._json_(aJson);
+_st(tweet)._renderOn_(tr);
+$1=tr;
+return $1;
+}, function($ctx1) {$ctx1.fill(self,"openAt:with:",{tr:tr,aJson:aJson,tweet:tweet},smalltalk.Tweet.klass)})},
 messageSends: ["new", "json:", "renderOn:"]}),
 smalltalk.Tweet.klass);
 
@@ -79,30 +79,46 @@ smalltalk.addClass('TwitterSearch', smalltalk.Object, [], 'TwitterWall');
 smalltalk.addMethod(
 smalltalk.method({
 selector: "query",
-fn: function () {
-    var self = this;
-    var result = nil;
-    var queryString = nil;
-    self['@queryString'] = smalltalk.send(smalltalk.send(smalltalk.send(unescape("%23searchQuery"), "_asJQuery", []), "_val", []), "_replace_with_", [unescape("%23"), unescape("%2523")]);
-    result = smalltalk.send(typeof jQuery == "undefined" ? nil : jQuery, "_ajax_options_", [smalltalk.send(unescape("http%3A//search.twitter.com/search.json%3Frpp%3D5%26q%3D"), "__comma", [self['@queryString']]), smalltalk.HashedCollection._fromPairs_([smalltalk.send("type", "__minus_gt", ["GET"]), smalltalk.send("success", "__minus_gt", [function (tmp) {return smalltalk.send(self, "_success_", [smalltalk.send(tmp, "_results", [])]);}]), smalltalk.send("error", "__minus_gt", [function () {return smalltalk.send(typeof window == "undefined" ? nil : window, "_alert_", ["error"]);}]), smalltalk.send("dataType", "__minus_gt", ["jsonp"])])]);
-    return self;
-},
+fn: function (){
+var self=this;
+var result,queryString;
+return smalltalk.withContext(function($ctx1) { 
+queryString=_st(_st("#searchQuery"._asJQuery())._val())._replace_with_("#","%23");
+result=_st(jQuery)._ajax_options_("http://search.twitter.com/search.json?rpp=5&q=".__comma(queryString),smalltalk.HashedCollection._from_(["type".__minus_gt("GET"),"success".__minus_gt((function(tmp){
+return smalltalk.withContext(function($ctx2) {
+return self._success_(_st(tmp)._results());
+}, function($ctx2) {$ctx2.fillBlock({tmp:tmp},$ctx1)})})),"error".__minus_gt((function(){
+return smalltalk.withContext(function($ctx2) {
+return _st(window)._alert_("error");
+}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})})),"dataType".__minus_gt("jsonp")]));
+return self}, function($ctx1) {$ctx1.fill(self,"query",{result:result,queryString:queryString},smalltalk.TwitterSearch)})},
 messageSends: ["replace:with:", "val", "asJQuery", "ajax:options:", ",", "->", "success:", "results", "alert:"]}),
 smalltalk.TwitterSearch);
 
 smalltalk.addMethod(
 smalltalk.method({
 selector: "success:",
-fn: function (tweets) {
-    var self = this;
-    var playground = nil;
-    var table = nil;
-    var tr = nil;
-    playground = smalltalk.send(unescape("%23playground"), "_asJQuery", []);
-    smalltalk.send(playground, "_empty", []);
-    smalltalk.send(function (html) {table = smalltalk.send(html, "_table", []);smalltalk.send(smalltalk.send(table, "_element", []), "_id_", ["twitterwall"]);return smalltalk.send(tweets, "_do_", [function (tweet) {tr = smalltalk.send(html, "_tr", []);smalltalk.send(table, "_append_", [tr]);return smalltalk.send(smalltalk.Tweet || Tweet, "_openAt_with_", [tr, tweet]);}]);}, "_appendToJQuery_", [playground]);
-    return self;
-},
+fn: function (tweets){
+var self=this;
+var playground,table,tr;
+function $Tweet(){return smalltalk.Tweet||(typeof Tweet=="undefined"?nil:Tweet)}
+return smalltalk.withContext(function($ctx1) { 
+playground="#playground"._asJQuery();
+_st(playground)._empty();
+_st((function(html){
+return smalltalk.withContext(function($ctx2) {
+table=_st(html)._table();
+table;
+_st(_st(table)._element())._id_("twitterwall");
+return _st(tweets)._do_((function(tweet){
+return smalltalk.withContext(function($ctx3) {
+tr=_st(html)._tr();
+tr;
+_st(table)._append_(tr);
+return _st($Tweet())._openAt_with_(tr,tweet);
+}, function($ctx3) {$ctx3.fillBlock({tweet:tweet},$ctx2)})}));
+}, function($ctx2) {$ctx2.fillBlock({html:html},$ctx1)})}))._appendToJQuery_(playground);
+return self}, function($ctx1) {$ctx1.fill(self,"success:",{tweets:tweets,playground:playground,table:table,tr:tr},smalltalk.TwitterSearch)})},
 messageSends: ["asJQuery", "empty", "appendToJQuery:", "table", "id:", "element", "do:", "tr", "append:", "openAt:with:"]}),
 smalltalk.TwitterSearch);
 

+ 1 - 1
twitterwall/js/TwitterWall.js

@@ -105,7 +105,7 @@ var self=this;
 var result,queryString;
 return smalltalk.withContext(function($ctx1) { 
 queryString=_st(_st("#searchQuery"._asJQuery())._val())._replace_with_("#","%23");
-result=_st(jQuery)._ajax_options_("http://search.twitter.com/search.json?rpp=5&q=".__comma(queryString),smalltalk.HashedCollection._fromPairs_(["type".__minus_gt("GET"),"success".__minus_gt((function(tmp){
+result=_st(jQuery)._ajax_options_("http://search.twitter.com/search.json?rpp=5&q=".__comma(queryString),smalltalk.HashedCollection._from_(["type".__minus_gt("GET"),"success".__minus_gt((function(tmp){
 return smalltalk.withContext(function($ctx2) {
 return self._success_(_st(tmp)._results());
 }, function($ctx2) {$ctx2.fillBlock({tmp:tmp},$ctx1)})})),"error".__minus_gt((function(){

+ 1 - 1
vendor/amber

@@ -1 +1 @@
-Subproject commit 92fbe52b4cd047fa9d51890e6df9916a38e16e09
+Subproject commit 12a2b9a11ceb2c5922b8ae1edb288f27bcf240f8