Esempio n. 1
0
proto._reset = function() {
    utils.forEach(this._packs, dom.removeElement);
    this._packs = [];
    this.clearSelection();
    this._allreadyResized = false;
    if (this._scrollableParent())
        this._scrollableParent().removeListener('scroll', utils.bindOnce(this._scroll, this));
};
Esempio n. 2
0
proto._visChanged = function() {
    var packNs = this._packsToRender(),
        revision = env.guid++;

    for (var packN=packNs[0]; packN <= packNs[1]; packN++) {
        if (!this._packs[packN]) {
            this._schedulePackRender(packN, revision);
        } else {
            this._packs[packN].__revision = revision;
        }
    };

    utils.forEach(this._packs, function(p, packN) {
        if (p.__revision != revision) this._removePack(packN);
    }, this);
};