Model view controller 如何在木偶视图上检查绑定?

Model view controller 如何在木偶视图上检查绑定?,model-view-controller,binding,event-handling,marionette,inspect,Model View Controller,Binding,Event Handling,Marionette,Inspect,有没有办法检查服务器上的活动绑定? 在中创建的绑定如下所示: //控制器/custom_controller.js this.customView.bind(“some:custom:event”,this.customEventHandler,this); 在视图中触发自定义事件: //视图/custom_view.js onSomething:function(){ this.trigger(“some:custom:event”); } 我想检查this.customView是否为so

有没有办法检查服务器上的活动绑定?
在中创建的绑定如下所示:

//控制器/custom_controller.js
this.customView.bind(“some:custom:event”,this.customEventHandler,this);
在视图中触发自定义事件:

//视图/custom_view.js
onSomething:function(){
this.trigger(“some:custom:event”);
}

我想检查
this.customView
是否为
some:custom:event
this.customView.\u events
是绑定事件的对象。因此,要检查事件是否存在,请执行以下操作:

if(this.customView.\u事件[“some:custom:event”]){
//做点什么
} 

只是想澄清什么是您正在观看的示例som:事件?太好了!您知道我是否还可以检查绑定了哪个事件处理程序吗?请随意扩展您的答案。您可以使用此.customView.\u events[“some:custom:event”]==this.customEventHandler查看它是否是一个特定的事件处理程序。但是,当我在
custom\u controller/customEventHandler
中进行检查时,表达式返回
false