in lib/@uncharted.software/stories-facets/src/components/facet/facetVertical.js [605:631]
FacetVertical.prototype._handleTransitionEnd = function(evt) {
this._updateSparkline();
var property = evt.originalEvent.propertyName;
if (evt.target === this._element.get(0) && property === 'opacity') {
if (this.visible) {
this.emit(this._type + ':animation:visible-on', evt, this._key, this._value, this._count);
} else {
this.emit(this._type + ':animation:visible-off', evt, this._key, this._value, this._count);
}
} else if (evt.target === this._iconContainer.get(0) && property === 'opacity') {
if (this.abbreviated) {
this.emit(this._type + ':animation:abbreviated-on', evt, this._key, this._value, this._count);
} else {
this.emit(this._type + ':animation:abbreviated-off', evt, this._key, this._value, this._count);
}
} else if (evt.target === this._barBackground.get(0) && property === 'width') {
this.emit(this._type + ':animation:bar-width-change', evt, this._key, this._value, this._count);
} else if (evt.target === this._barForeground.get(0) && property === 'width') {
if (!this._hasEmittedSelectedEvent && this._barForeground.hasClass(SELECTED_CLASS)) {
this.emit(this._type + ':animation:selected-on', evt, this._key, this._value, this._count);
this._hasEmittedSelectedEvent = true;
} else if (this._hasEmittedSelectedEvent && !this._barForeground.hasClass(SELECTED_CLASS)) {
this.emit(this._type + ':animation:selected-off', evt, this._key, this._value, this._count);
this._hasEmittedSelectedEvent = false;
}
}
};