render: function()

in static/js/com/toc.js [82:96]


  render: function (opts) {
    var that = this;
    var from = (opts && typeof opts.from != 'undefined') ? opts.from : that.from;
    var to = (opts && typeof opts.to != 'undefined') ? opts.to : that.to;
    var target = (opts && typeof opts.target != 'undefined') ? opts.target : null;
    var toc;

    toc = that.__create(that.map, from, to);

    if (target != null) {
      target.appendChild(toc);
    }

    return toc;
  },