Skip to content

Commit

Permalink
ensures that null objects are considered equivalent
Browse files Browse the repository at this point in the history
  • Loading branch information
rider-griffin committed Oct 27, 2021
1 parent 9705f84 commit 28e32f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/h5p.js
Original file line number Diff line number Diff line change
Expand Up @@ -1435,7 +1435,9 @@ H5P.isObjectEqual = function (aObject, bObject, aStack, bStack) {
}

if(aObject === null || bObject === null) {
return false;
if(aObject !== bObject) {
return false;
}
}

if(aObject !== aObject) {
Expand Down

0 comments on commit 28e32f6

Please sign in to comment.