Sencha Touch中的私有方法是继承的吗?

Ryu*_*yuk 0 extjs sencha-touch

鉴于:

// @private
updateInactiveLabel: function(newInactiveLabel, oldInactiveLabel) {
    if (newInactiveLabel != oldInactiveLabel) {
        this.getComponent().element.dom.setAttribute('data-inactivelabel', newInactiveLabel);
    }
},
Run Code Online (Sandbox Code Playgroud)

以上是Ext.field.Toggle的片段代码

这个方法是否会由扩展Toggle(MyToggle)的用户定义类继承?

我的意思是这// @private是一个防止方法继承的注释?

art*_*kay 5

是的,私有方法将被继承,除非它们被覆盖.

@private表示法用于文档目的.