How to get [[boundthis]] from function

后端 未结 1 1472
礼貌的吻别
礼貌的吻别 2020-12-06 16:43

I need your help.
I have 2 functions:

addMoveListeners: function(e) {
  e = e || window.event;
  // Binging context to function move
  moveListener =         


        
相关标签:
1条回答
  • 2020-12-06 17:28

    You cannot. [[BoundThis]] is an internal property of bound function objects. It is not programmatically accessible.

    You might be able to view it with inspection of the object via console, but to use it in your program logic you will need to write your own version of bind that exposes this value as a property.

    0 讨论(0)
提交回复
热议问题