SIGN IN SIGN UP
SortableJS / Sortable UNCLAIMED

Reorderable drag-and-drop lists for modern browsers and touch devices. No jQuery or framework required.

0 0 45 JavaScript

Correctly match multiple class names

Assume that el.className === "foo bar"
Assume that your selector is "DIV.foo.bar"

(' ' + el.className + ' ').match(re) will only have one match - " foo " - because the "\\s" trailing character on "foo" prevents " bar " from being matched

EZ fix is just to make sure the trailing whitespace is not consumed by the regex
A
Adam Fleming committed
77675363819beadf457835c9c0b58185fe5b94e6
Parent: 851129a
Committed by Adam Fleming <adam@honestbuildings.com> on 6/16/2015, 2:04:03 PM