mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 08:02:51 +02:00
Changed "instanceof jQuery" to "instanceof $"
Original code will break if jquery noconflict is applied, where $ and jQuery produces jQuery instance of different versions.
This commit is contained in:
@@ -839,7 +839,7 @@
|
||||
* than the original.
|
||||
*/
|
||||
fn.register_widget = function($el) {
|
||||
var isDOM = $el instanceof jQuery;
|
||||
var isDOM = $el instanceof $;
|
||||
var wgd = isDOM ? this.dom_to_coords($el) : $el;
|
||||
var posChanged = false;
|
||||
isDOM || ($el = wgd.el);
|
||||
|
||||
Reference in New Issue
Block a user