I ve confused myself nicely here. My scenario is as follows:
function DesignPad() {
function EditBar() {
...
this.removeHandler = function() {
**// how do I call Dragger.removeAsset**
}
}
function Dragger(){
...
this.removeAsset = function() {}
}
this.init = function() {
this.editBar = new EditBar();
this.dragger = new Dragger();
}
}
var dp = new DesignPad();
...
我似乎无法调用Dragger.RemoveAsset
。我理解为什么,我的问题是如何调用它?
我正在努力将类似的东西分开(例如 Dragger / EditBar),但在我的事件处理程序中好像出现了各种混淆。在这方面是否有任何建议、好的阅读材料等?