From d74fd843e7a71c571d6824c7d8a7e56666ef838c Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Wed, 2 Mar 2016 07:56:26 -0600 Subject: [PATCH] Core: Add debug warning when widget not found See http://stackoverflow.com/a/35713348/145346 --- js/jquery.tablesorter.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/jquery.tablesorter.js b/js/jquery.tablesorter.js index d827ab30..90503e5f 100644 --- a/js/jquery.tablesorter.js +++ b/js/jquery.tablesorter.js @@ -1976,6 +1976,8 @@ // set priority to 10 if not defined if ( !widget.priority ) { widget.priority = 10; } widgets[ indx ] = widget; + } else if ( c.debug ) { + console.warn( '"' + names[ indx ] + '" widget code does not exist!' ); } } // sort widgets by priority