我应该将这些绑定组合成一个绑定吗?这会提高性能吗?我也可以在父绑定中显式调用绑定,这样我仍然可以对逻辑进行一些封装。
<div class="game clearfix draggable-active draggable-item" data-bind="
draggableCss: { game: $data },
draggableGameHandler : { disabled: (!$data.Matchup || $data.Occupied), disabledDrop: ($data.Disabled() || $data.Occupied) },
click: function() { alert('test') }">