supercon.as

来自「这是《Flash MX编程与创意实现》的源代码」· AS 代码 · 共 27 行

AS
27
字号
/*
  Object.superCon() method
  Oct. 29, 2002
  (c) 2002 Robert Penner
  
  This is a method that performs the same role as the super() operator.
  Object.superCon() is used in cases where super() fails to work correctly
  (namely when __proto__ inheritance is used).
  
  Discussed in Chapter 2 of 
  Robert Penner's Programming Macromedia Flash MX
  
  http://www.robertpenner.com/profmx
  http://www.amazon.com/exec/obidos/ASIN/0072223561/robertpennerc-20
*/


Object.prototype.superCon = function () {
	// call the superclass constructor, passing the function arguments along
	arguments.caller.prototype.__proto__.constructor.apply (this, arguments);
};
// hide method from for..in loops
ASSetPropFlags (Object.prototype, null, 1);



⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?