[Selection] Don't reuse old paths for new items

This commit is contained in:
Victor Woeltjen 2016-09-14 11:46:06 -07:00
parent 5e3dcadfa4
commit 1be517f3ea

View File

@ -37,6 +37,10 @@ define(['./Path', 'zepto'], function (Path, $) {
$element.attr('data-context', id);
if (this.paths[id].head() !== item) {
this.release(htmlElement);
}
if (!this.paths[id]) {
var $parent = $element.closest('[data-context]');
var parentId = $parent.attr('data-context');