thinkpixellab/PxLoader — pull request #15 by leolannenmaki (2012-07-30 11:35:36+00:00)
Title: Fix `PxLoaderTags#contains` always returning true when comparing tag arrays with only 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.