mirror of
https://github.com/Mottie/tablesorter.git
synced 2025-01-12 15:24:21 +00:00
Core: Add debug warning when widget is added more than once
This commit is contained in:
parent
d74fd843e7
commit
4d6c714a0c
@ -1848,6 +1848,9 @@
|
||||
███████▀ ██ █████▀ ▀████▀ ██████ ██ █████▀
|
||||
*/
|
||||
addWidget : function( widget ) {
|
||||
if ( widget.id && !ts.isEmptyObject( ts.getWidgetById( widget.id ) ) ) {
|
||||
console.warn( '"' + widget.id + '" widget was loaded more than once!' );
|
||||
}
|
||||
ts.widgets[ ts.widgets.length ] = widget;
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user