Tablesorter: don't apply widget twice during initialization

This commit is contained in:
Piotr Przybylski 2011-08-18 15:21:17 +02:00
parent e08ce9450b
commit ceee608237

View File

@ -826,9 +826,11 @@
// if user has supplied a sort list to constructor.
if (config.sortList.length > 0) {
$this.trigger("sorton", [config.sortList]);
} else {
// appendToTable used in sorton event already calls applyWidget
// apply widgets
applyWidget(this);
}
// apply widgets
applyWidget(this);
});
};
this.addParser = function (parser) {