display_id target index is now outputs.length - 1

since item has been appended to outputs before calling instead of after
pull/2286/head
Min RK 9 years ago
parent f510806ff2
commit 273e8f9bbe

@ -621,7 +621,9 @@ define([
targets = this._display_id_targets[display_id] = [];
}
targets.push({
index: this.outputs.length,
// output has been appended when this is called,
// so use the index of the last item.
index: this.outputs.length - 1,
element: element,
});
};

Loading…
Cancel
Save