pointer.js 967 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. var RTL$ = {
  2. extend: function extend(methods){
  3. function Type(){
  4. for(var m in methods)
  5. this[m] = methods[m];
  6. }
  7. Type.prototype = this.prototype;
  8. var result = methods.init;
  9. result.prototype = new Type(); // inherit this.prototype
  10. result.prototype.constructor = result; // to see constructor name in diagnostic
  11. result.extend = extend;
  12. return result;
  13. }
  14. };
  15. var m = function (){
  16. var T = RTL$.extend({
  17. init: function T(){
  18. this.p = null;
  19. this.i = 0;
  20. }
  21. });
  22. var T2 = RTL$.extend({
  23. init: function T2(){
  24. this.p = null;
  25. }
  26. });
  27. var Forward = RTL$.extend({
  28. init: function Forward(){
  29. }
  30. });
  31. var r = new T();
  32. var r2 = null;
  33. var pf = null;
  34. var anonymous$1 = RTL$.extend({
  35. init: function anonymous$1(){
  36. }
  37. });
  38. var pAnonymous = null;
  39. r.p = new T();
  40. r.p.p = new T();
  41. r.p.i = 123;
  42. r2 = new T2();
  43. r2.p = new T();
  44. pf = new Forward();
  45. pAnonymous = new anonymous$1();
  46. }();