lib/third_party/tracing/base/interval_tree.js
function(datum) {
      var startPosition = this.beginPositionCb_(datum);
      var endPosition = this.endPositionCb_(datum);

      var node = new IntervalTreeNode(datum,
                                      startPosition, endPosition);
      this.size_++;

      this.root_ = this.insertNode_(this.root_, node);
      this.root_.colour = Colour.BLACK;
      return datum;
    }
function(datum) {
      var startPosition = this.beginPositionCb_(datum);
      var endPosition = this.endPositionCb_(datum);

      var node = new IntervalTreeNode(datum,
                                      startPosition, endPosition);
      this.size_++;

      this.root_ = this.insertNode_(this.root_, node);
      this.root_.colour = Colour.BLACK;
      return datum;
    }
function ( datum ) { var startPosition = this . beginPositionCb_ ( datum ) ; var endPosition = this . endPositionCb_ ( datum ) ; var node = new IntervalTreeNode ( datum , startPosition , endPosition ) ; this . size_ ++ ; this . root_ = this . insertNode_ ( this . root_ , node ) ; this . root_ . colour = Colour . BLACK ; return datum ; }
Insert events into the interval tree.

@param {Object} datum The object to insert.
Insert events into the interval tree .