Skip to content

Commit 2988e7d

Browse files
committed
chore: use $ instead of jQuery inside gridster
1 parent 2603104 commit 2988e7d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/jquery.collision.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
this.$element = el;
4242
this.last_colliders = [];
4343
this.last_colliders_coords = [];
44-
if (typeof colliders === 'string' || colliders instanceof jQuery) {
44+
if (typeof colliders === 'string' || colliders instanceof $) {
4545
this.$colliders = $(colliders,
4646
this.options.colliders_context).not(this.$element);
4747
}else{

src/jquery.gridster.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@
578578
* @return {Class} Returns the instance of the Gridster Class.
579579
*/
580580
fn.remove_widget = function(el, silent, callback) {
581-
var $el = el instanceof jQuery ? el : $(el);
581+
var $el = el instanceof $ ? el : $(el);
582582
var wgd = $el.coords().grid;
583583

584584
// if silent is a function assume it's a callback
@@ -2363,7 +2363,7 @@
23632363
fn.get_cells_occupied = function(el_grid_data) {
23642364
var cells = { cols: [], rows: []};
23652365
var i;
2366-
if (arguments[1] instanceof jQuery) {
2366+
if (arguments[1] instanceof $) {
23672367
el_grid_data = arguments[1].coords().grid;
23682368
}
23692369

@@ -2447,7 +2447,7 @@
24472447

24482448
var cr, max;
24492449
var action = type + '/' + direction;
2450-
if (arguments[2] instanceof jQuery) {
2450+
if (arguments[2] instanceof $) {
24512451
var el_grid_data = arguments[2].coords().grid;
24522452
col = el_grid_data.col;
24532453
row = el_grid_data.row;

0 commit comments

Comments
 (0)