More concise change detection

This commit is contained in:
Tanner Linsley 2015-10-31 18:17:06 -06:00
parent 8398d26d10
commit 5ba1ec0d3b

View File

@ -481,9 +481,8 @@
// If entering, leaving, or changing elements, animate the change via pivot
if ((this.lastActive.length !== this.active.length) ||
(this.lastActive.length === this.active.length && changed) ||
(this.lastTooltipActive.length !== this.tooltipActive.length) ||
(this.lastTooltipActive.length === this.tooltipActive.length && changed)) {
changed) {
this.stop();
console.log('render');