Skip to content

Commit

Permalink
* Added quoting to the element lookup filters to allow for data-ids w…
Browse files Browse the repository at this point in the history
…ith punctuation in them, eg ".-,", etc

* dalyons@b2f0895
  • Loading branch information
arlm committed Jul 4, 2012
1 parent b881fda commit 1f702a3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jquery.quicksand.js
Expand Up @@ -201,7 +201,7 @@ Github site: http://github.com/razorjack/quicksand
} }
}); });
} else { } else {
destElement = $collection.filter('[' + options.attribute + '=' + $(this).attr(options.attribute) + ']'); destElement = $collection.filter('[' + options.attribute + '="' + $(this).attr(options.attribute) + '"]');
} }
if (destElement.length) { if (destElement.length) {
// The item is both in source and destination collections // The item is both in source and destination collections
Expand Down Expand Up @@ -262,8 +262,8 @@ Github site: http://github.com/razorjack/quicksand
} }
}); });
} else { } else {
sourceElement = $source.filter('[' + options.attribute + '=' + $(this).attr(options.attribute) + ']'); sourceElement = $source.filter('[' + options.attribute + '="' + $(this).attr(options.attribute) + '"]');
destElement = $collection.filter('[' + options.attribute + '=' + $(this).attr(options.attribute) + ']'); destElement = $collection.filter('[' + options.attribute + '="' + $(this).attr(options.attribute) + '"]');
} }


var animationOptions; var animationOptions;
Expand Down Expand Up @@ -304,4 +304,4 @@ Github site: http://github.com/razorjack/quicksand
} }
}); });
}; };
})(jQuery); })(jQuery);

0 comments on commit 1f702a3

Please sign in to comment.