Permalink
Browse files

Merge pull request #15 from leolannenmaki/master

Fix `PxLoaderTags#contains` always returning true when comparing tag arrays with only one element
  • Loading branch information...
2 parents 97a63c4 + 73628dc commit b014ce5ce4183757ef203b12f1b857529e3f91b3 @joelfillmore joelfillmore committed Aug 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 PxLoader.js
View
@@ -349,7 +349,7 @@ function PxLoaderTags(values) {
this.contains = function(other) {
if (this.length === 0 || other.length === 0) {
return false;
- } else if (this.length === 1) {
+ } else if (this.length === 1 && this.value !== null) {
if (other.length === 1) {
return this.value === other.value;
} else {

0 comments on commit b014ce5

Please sign in to comment.