mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-29 08:36: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: [],
|
error: [],
|
||||||
reset: function () {
|
reset: function () {
|
||||||
for (var i in testLog) {
|
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;
|
testLog[i].length = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user