mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Core: Add debug warning when widget not found
See http://stackoverflow.com/a/35713348/145346
This commit is contained in:
parent
d089be2734
commit
d74fd843e7
@ -1976,6 +1976,8 @@
|
|||||||
// set priority to 10 if not defined
|
// set priority to 10 if not defined
|
||||||
if ( !widget.priority ) { widget.priority = 10; }
|
if ( !widget.priority ) { widget.priority = 10; }
|
||||||
widgets[ indx ] = widget;
|
widgets[ indx ] = widget;
|
||||||
|
} else if ( c.debug ) {
|
||||||
|
console.warn( '"' + names[ indx ] + '" widget code does not exist!' );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// sort widgets by priority
|
// sort widgets by priority
|
||||||
|
Loading…
Reference in New Issue
Block a user