Moka-Controllers.deploy.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. (function(smalltalk,nil,_st){
  2. smalltalk.addPackage('Moka-Controllers');
  3. smalltalk.addClass('MKButtonController', smalltalk.MKAspectController, [], 'Moka-Controllers');
  4. smalltalk.addMethod(
  5. smalltalk.method({
  6. selector: "onPressed",
  7. fn: function (){
  8. var self=this;
  9. return smalltalk.withContext(function($ctx1) {
  10. self._performAction();
  11. return self}, function($ctx1) {$ctx1.fill(self,"onPressed",{},smalltalk.MKButtonController)})},
  12. messageSends: ["performAction"]}),
  13. smalltalk.MKButtonController);
  14. smalltalk.addClass('MKCheckboxController', smalltalk.MKAspectController, [], 'Moka-Controllers');
  15. smalltalk.addMethod(
  16. smalltalk.method({
  17. selector: "onToggled:",
  18. fn: function (aBoolean){
  19. var self=this;
  20. return smalltalk.withContext(function($ctx1) {
  21. self._performActionWith_(aBoolean);
  22. return self}, function($ctx1) {$ctx1.fill(self,"onToggled:",{aBoolean:aBoolean},smalltalk.MKCheckboxController)})},
  23. messageSends: ["performActionWith:"]}),
  24. smalltalk.MKCheckboxController);
  25. smalltalk.addClass('MKInputController', smalltalk.MKAspectController, [], 'Moka-Controllers');
  26. smalltalk.addMethod(
  27. smalltalk.method({
  28. selector: "onEnterPressed:",
  29. fn: function (aString){
  30. var self=this;
  31. return smalltalk.withContext(function($ctx1) {
  32. self._performAtionWith_(aString);
  33. return self}, function($ctx1) {$ctx1.fill(self,"onEnterPressed:",{aString:aString},smalltalk.MKInputController)})},
  34. messageSends: ["performAtionWith:"]}),
  35. smalltalk.MKInputController);
  36. })(global_smalltalk,global_nil,global__st);