Advertisement
fruffl

class super.super.super

Apr 26th, 2010
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Object.prototype.addProperty("super", function ()
  2. {
  3.     if (this.$isInSuperChain)
  4.     {
  5.         var p = new Object(this.__constructor__);
  6.         p.__proto__ = this.__proto__.__proto__;
  7.     }
  8.     else
  9.     {
  10.         var p = new Object(this.__proto__.__proto__.__constructor__);
  11.         p.__proto__ = this.__proto__.__proto__.__proto__;
  12.     }
  13.     p.$isInSuperChain = true;
  14.     return p;
  15. }, null);
  16. ASSetPropFlags(Object.prototype, "super", 7);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement