2012-11-01 13 views
0

這是ExtJS中的callParent方法。什麼是$前,$所有者和$名稱?爲什麼有一個領先的「$」符號? callParent:function(args)var method;

  // 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

這是類系統設置的內部細節,因此它可以跟蹤方法。 $在那裏,所以它不太可能與你自己的類名相沖突。

相關問題