1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 19:42:01 +02:00

Make filters apply to newly added items too.

This commit is contained in:
Simo Kinnunen 2014-10-28 19:13:15 +09:00
parent 10fca31577
commit 1fed3b9da5
2 changed files with 6 additions and 2 deletions

View file

@ -452,7 +452,9 @@ module.exports = function DeviceListDetailsDirective(
// Triggers when the tracker sees a device for the first time.
function addListener(device) {
insertRow(createRow(device), device)
var row = createRow(device)
filterRow(row, device)
insertRow(row, device)
}
// Triggers when the tracker notices that a device changed.

View file

@ -480,7 +480,9 @@ module.exports = function DeviceListDetailsDirective(
// Triggers when the tracker sees a device for the first time.
function addListener(device) {
insertItem(createItem(device), device)
var item = createItem(device)
filterItem(item, device)
insertItem(item, device)
}
// Triggers when the tracker notices that a device changed.