mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 14:46:10 +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
@ -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…
Reference in New Issue
Block a user