Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
PxLoaderTags#contains
when comparing tag arrays with one element
The problem is: new PxLoaderTags('tag').contains(new PxLoaderTags('tag2')) ==> false new PxLoaderTags(['tag1']).contains(new PxLoaderTags(['tag2'])) ==> true This happens because `contains` checks if the length of both arrays is one and if this is the case it tries to compare the supposed singular value from both. This then results in comparing null against null and then returning true, incorrectly.
- Loading branch information