Function.apply not using thisArg parameter

后端 未结 4 1067
遇见更好的自我
遇见更好的自我 2020-12-16 20:48

I\'m writing some Actionscript3 code that attempts to apply a method to an object that is determined at runtime. The AS3 documentation for Function.apply and Function.call b

4条回答
  •  误落风尘
    2020-12-16 21:02

    .call() on a prototype property (a function) worked fine, 'this' was as provided at the call site. nice answer. But note that access modifiers (public, protected) are respected, so if you are calling into a different class, you will not be able to access protected members (naturally).

提交回复
热议问题