Skip to content
This repository
Browse code

Merge pull request #15 from leolannenmaki/master

Fix `PxLoaderTags#contains` always returning true when comparing tag arrays with only one element
  • Loading branch information...
commit b014ce5ce4183757ef203b12f1b857529e3f91b3 2 parents 97a63c4 + 73628dc
Joel Fillmore authored August 06, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  PxLoader.js
2  PxLoader.js
@@ -349,7 +349,7 @@ function PxLoaderTags(values) {
349 349
     this.contains = function(other) {
350 350
         if (this.length === 0 || other.length === 0) {
351 351
             return false;
352  
-        } else if (this.length === 1) {
  352
+        } else if (this.length === 1 && this.value !== null) {
353 353
             if (other.length === 1) {
354 354
                 return this.value === other.value;
355 355
             } else {

0 notes on commit b014ce5

Please sign in to comment.
Something went wrong with that request. Please try again.