| OLD | NEW |
| (Empty) | |
| 1 var propertyPainter = (function () { |
| 2 "use strict"; |
| 3 |
| 4 var propPainter = {}; |
| 5 |
| 6 propPainter.paintNew = function (playerInfo, div) { |
| 7 removeChildren(div); |
| 8 var table = makeTable("Key", "Value", "Timestamp"); |
| 9 |
| 10 goog.object.forEach(playerInfo.properties, function (element, index) { |
| 11 var pastValues = playerInfo.pastValues[index]; |
| 12 var lastValue = pastValues[pastValues.length - 1]; |
| 13 var time = goog.time.millisToString(lastValue.time); |
| 14 |
| 15 var row = genRow([index, element, time]); |
| 16 |
| 17 appendRow(table, row); |
| 18 }); |
| 19 div.appendChild(table); |
| 20 }; |
| 21 |
| 22 propPainter.paintExist = propPainter.paintNew; |
| 23 |
| 24 |
| 25 propPainter.invalidate = function () { |
| 26 // Do nothing |
| 27 }; |
| 28 |
| 29 return propPainter; |
| 30 }()); |
| OLD | NEW |