From c6226306c2ce9aa7d45d774d7de19088acba0c66 Mon Sep 17 00:00:00 2001 From: aegisrunestone Date: Tue, 2 Sep 2014 14:53:58 +0800 Subject: [PATCH] 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. --- src/jquery.gridster.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jquery.gridster.js b/src/jquery.gridster.js index 566cc3dbf..5f76454ad 100755 --- a/src/jquery.gridster.js +++ b/src/jquery.gridster.js @@ -842,7 +842,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);