Skip to content

Commit

Permalink
fixed: small issue when table has no id attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
fnagel committed Jun 25, 2012
1 parent 07fd1ae commit ebb1592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Table/js/ui.ariaSorTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ $.widget("ui.ariaSorTable", {

// ARIA | make UID if no ID is set by default
var elementID = self.element.attr("id");
if (elementID != "") {
if (elementID) {
options.uid = elementID;
} else {
options.uid = Math.random().toString(16).slice(2, 10);
Expand Down

0 comments on commit ebb1592

Please sign in to comment.