Skip to content

Commit c622630

Browse files
aegisrunestonevieron
aegisrunestone
authored andcommitted
fix(gridster): changed "instanceof jQuery" to "instanceof $"
Original code will break if jquery noconflict is applied, where $ and jQuery produces jQuery instance of different versions.
1 parent d947175 commit c622630

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.gridster.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@
842842
* than the original.
843843
*/
844844
fn.register_widget = function($el) {
845-
var isDOM = $el instanceof jQuery;
845+
var isDOM = $el instanceof $;
846846
var wgd = isDOM ? this.dom_to_coords($el) : $el;
847847
var posChanged = false;
848848
isDOM || ($el = wgd.el);

0 commit comments

Comments
 (0)