new.js 697 B

1234567891011121314151617181920212223242526272829303132333435
  1. var RTL$ = {
  2. extend: function extend(methods){
  3. methods.__proto__ = this.prototype; // make instanceof work
  4. // to see constructor name in diagnostic
  5. var result = methods.init;
  6. methods.constructor = result.prototype.constructor;
  7. result.prototype = methods;
  8. result.extend = extend;
  9. return result;
  10. }
  11. };
  12. var m = function (){
  13. var T1 = RTL$.extend({
  14. init: function T1(){
  15. this.field1 = 0;
  16. }
  17. });
  18. var anonymous$1$base = RTL$.extend({
  19. init: function anonymous$1$base(){
  20. }
  21. });
  22. var p = null;
  23. var p1 = null;
  24. var anonymous$3 = RTL$.extend({
  25. init: function anonymous$3(){
  26. this.p = null;
  27. }
  28. });
  29. var r = new anonymous$3();
  30. p = new anonymous$1$base();
  31. p1 = new T1();
  32. r.p = new T1();
  33. }();