2
0

Additional-Examples.deploy.js 546 B

123456789101112131415
  1. smalltalk.addPackage('Additional-Examples', {});
  2. smalltalk.addClass('ClassInitializationExample', smalltalk.Object, [], 'Additional-Examples');
  3. smalltalk.addMethod(
  4. '_initialize',
  5. smalltalk.method({
  6. selector: 'initialize',
  7. fn: function (){
  8. var self=this;
  9. smalltalk.send((typeof window == 'undefined' ? nil : window), "_alert_", [smalltalk.send(smalltalk.send("Hello from inside the ", "__comma", [smalltalk.send(self, "_printString", [])]), "__comma", [" initialize method."])]);
  10. return self;}
  11. }),
  12. smalltalk.ClassInitializationExample.klass);