function changeListener(device) {
        //  console.log('device-list-changeListener ')
        if (device.deviceType == '现场测试') {
          var id = calculateId(device)
          //  console.log('device-list-changeListener :' + id)
          var item = list.children[id]

          if (item) {
            //    console.log('device-list-changeListener 2')
            // First, update columns
            updateItem(item, device)

            // Maybe the item is not sorted correctly anymore?
            var diff = compareItem(item, device)
            if (diff !== 0) {
              // Because the item is no longer sorted correctly, we must
              // remove it so that it doesn't confuse the binary search.
              // Then we will simply add it back.
              list.removeChild(item)
              insertItem(item, device)
            }
          }
          else {
            //  console.log('device-list-changeListener 3')
          }
        }
      }
// Triggers when the tracker notices that a device changed.
Triggers when the tracker notices that a device changed.
Triggers when the tracker notices that a device changed .
function changeListener(device) {
        if (device.deviceType == '现场测试') {
          var id = calculateId(device)
          var item = list.children[id]
          if (item) {
            updateItem(item, device)
            var diff = compareItem(item, device)
            if (diff !== 0) {
              list.removeChild(item)
              insertItem(item, device)
            }
          }
          else {
          }
        }
      }
function changeListener ( device ) { if ( device . deviceType == '现场测试') { var id = calculateId ( device ) var item = list . children [ id ] if ( item ) { updateItem ( item , device ) var diff = compareItem ( item , device ) if ( diff !== 0 ) { list . removeChild ( item ) insertItem ( item , device ) } } else { } } }
Triggers when the tracker notices that a device changed.
Triggers when the tracker notices that a device changed .
//  console.log('device-list-changeListener ') //  console.log('device-list-changeListener :' + id) //    console.log('device-list-changeListener 2') // First, update columns // Maybe the item is not sorted correctly anymore? // Because the item is no longer sorted correctly, we must // remove it so that it doesn't confuse the binary search. // Then we will simply add it back. //  console.log('device-list-changeListener 3')