Permalink
Browse files

* Added quoting to the element lookup filters to allow for data-ids w…

…ith punctuation in them, eg ".-,", etc

* dalyons@b2f0895
  • Loading branch information...
1 parent b881fda commit 1f702a3e598e2ec52f362f331bdac7e44e3af458 @arlm arlm committed Jul 4, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 jquery.quicksand.js
View
@@ -201,7 +201,7 @@ Github site: http://github.com/razorjack/quicksand
}
});
} else {
- destElement = $collection.filter('[' + options.attribute + '=' + $(this).attr(options.attribute) + ']');
+ destElement = $collection.filter('[' + options.attribute + '="' + $(this).attr(options.attribute) + '"]');
}
if (destElement.length) {
// The item is both in source and destination collections
@@ -262,8 +262,8 @@ Github site: http://github.com/razorjack/quicksand
}
});
} else {
- sourceElement = $source.filter('[' + options.attribute + '=' + $(this).attr(options.attribute) + ']');
- destElement = $collection.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) + '"]');
}
var animationOptions;
@@ -304,4 +304,4 @@ Github site: http://github.com/razorjack/quicksand
}
});
};
-})(jQuery);
+})(jQuery);

0 comments on commit 1f702a3

Please sign in to comment.