Guest User

Untitled

a guest
Apr 22nd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.     var Base =
  3.          (
  4.               function () {
  5.                    var $$ctor =
  6.                         function Base () {
  7.                         };
  8.                    $$ctor.prototype["method"] =
  9.                         function method
  10.                         (
  11.                         )
  12.                         {
  13.                              console
  14.                              [
  15.                                   "log"
  16.                              ]
  17.                              (
  18.                                   "Base.method"
  19.                              );
  20.                         }
  21.                    ;
  22.                    $$ctor.prototype["method2"] =
  23.                         function method2
  24.                         (
  25.                         )
  26.                         {
  27.                              console
  28.                              [
  29.                                   "log"
  30.                              ]
  31.                              (
  32.                                   "Base.method2"
  33.                              );
  34.                         }
  35.                    ;
  36.                    return $$ctor;
  37.               }
  38.          )();
  39.     var Derived =
  40.          (
  41.               function () {
  42.                    var $$ctor =
  43.                         function Derived () {
  44.                         };
  45.                    var $$extended =
  46.                         Base;
  47.                    util.inherits($$ctor, $$extended);
  48.                    $$ctor.prototype["method2"] =
  49.                         function method2
  50.                         (
  51.                         )
  52.                         {
  53.                              console
  54.                              [
  55.                                   "log"
  56.                              ]
  57.                              (
  58.                                   "Derived.method2"
  59.                              );
  60.                         }
  61.                    ;
  62.                    return $$ctor;
  63.               }
  64.          )();
  65.     var d =
  66.          new
  67.          Derived
  68.          (
  69.          );
  70.     d
  71.     [
  72.          "method"
  73.     ]
  74.     (
  75.     );
  76.     d
  77.     [
  78.          "method2"
  79.     ]
  80.     (
  81.     );
  82. }
Add Comment
Please, Sign In to add comment