2012-11-01 4 views
0

이것은 ExtJS의 callParent 메소드입니다. $ previous, $ owner 및 $ name은 무엇입니까? "$"기호가 앞에 오는 이유는 무엇입니까? callParent : function (args) { var 메서드;

  // This code is intentionally inlined for the least number of debugger stepping 
      return (method = this.callParent.caller) && (method.$previous || 
        ((method = method.$owner ? method : method.caller) && 
         method.$owner.superclass.$class[method.$name])).apply(this, args || noArgs); 
     } 

답변

1

클래스 시스템이 설정 한 내부 정보로 메소드를 추적 할 수 있습니다. $가 있으므로 클래스의 고유 속성 이름과 충돌 할 확률이 적습니다.

관련 문제