我一直在查看一些库 javascript 源代码,发现了一个我完全不明白的声明。该库基于dojo并使用其“类继承”实现。这是一个主题的代码的简化版本:
dojo.declare("myCustomClass", {
    constructor:function(){
        // what does this statement mean?
        isContentShowing : false;
        //here some code that uses isContentShowing in callbacks
        dojo.connect(this, "fakeEvent", this, function(){
            if(this.isContentShowing){
            //do some stuff
            }
            //do more stuff
        });
    }
});
那么问题来了,isContentShowing: false;内部函数体是什么意思呢?