mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-04-01 21:06:12 +03:00
Tests: more targeted log capture setup
@Ventero pointed out that functions also have a length property
This commit is contained in:
parent
2a3044e0cf
commit
9fb4ae2a9a
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@
|
|||
error: [],
|
||||
reset: function () {
|
||||
for (var i in testLog) {
|
||||
if (testLog.hasOwnProperty(i) && 'length' in testLog[i]) {
|
||||
if (testLog.hasOwnProperty(i) && 'length' in testLog[i] && 'push' in testLog[i]) {
|
||||
testLog[i].length = 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue