var DetailMetricsPanelView = BaseDataView.extend(function DetailMetricsPanelView() {
   BaseDataView.apply(this, arguments);
   this.mapEvent({
     model: {
       change: batchCalls(_onModelChange, this)
     }
   });
 }, {
Пример #2
0
  var BasePieChartView = BaseChartView.extend(function BasePieChartView() {
    BaseChartView.apply(this, arguments);

    this.mapEvent({
      '.popover': {
        'tap': _tapInPopover,
        'mouseenter': _enterPopover,
        'mouseleave': _exitPopover.bind(this)
      },
      '.pie-center': {
        'tap': _tapInCircle.bind(this),
        'mouseenter': _enterCircle.bind(this),
        'mouseleave': _exitCircle.bind(this)
      },
      '.popover-see-more': {
        'tap': this.onTapSeeMore.bind(this)
      }
    });

    this.updateLegend = batchCalls(_redrawLegend, this);
  }, {