From 381a8815011971acde241736a8fa3fdc1a3f60fa Mon Sep 17 00:00:00 2001 From: vieron Date: Thu, 14 Nov 2013 16:36:44 +0100 Subject: [PATCH] chore: use $ instead of jQuery inside gridster --- src/jquery.collision.js | 2 +- src/jquery.gridster.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/jquery.collision.js b/src/jquery.collision.js index 958014592..d93ce4792 100644 --- a/src/jquery.collision.js +++ b/src/jquery.collision.js @@ -41,7 +41,7 @@ this.$element = el; this.last_colliders = []; this.last_colliders_coords = []; - if (typeof colliders === 'string' || colliders instanceof jQuery) { + if (typeof colliders === 'string' || colliders instanceof $) { this.$colliders = $(colliders, this.options.colliders_context).not(this.$element); }else{ diff --git a/src/jquery.gridster.js b/src/jquery.gridster.js index 88b984b35..0ff9cb640 100644 --- a/src/jquery.gridster.js +++ b/src/jquery.gridster.js @@ -578,7 +578,7 @@ * @return {Class} Returns the instance of the Gridster Class. */ fn.remove_widget = function(el, silent, callback) { - var $el = el instanceof jQuery ? el : $(el); + var $el = el instanceof $ ? el : $(el); var wgd = $el.coords().grid; // if silent is a function assume it's a callback @@ -2363,7 +2363,7 @@ fn.get_cells_occupied = function(el_grid_data) { var cells = { cols: [], rows: []}; var i; - if (arguments[1] instanceof jQuery) { + if (arguments[1] instanceof $) { el_grid_data = arguments[1].coords().grid; } @@ -2447,7 +2447,7 @@ var cr, max; var action = type + '/' + direction; - if (arguments[2] instanceof jQuery) { + if (arguments[2] instanceof $) { var el_grid_data = arguments[2].coords().grid; col = el_grid_data.col; row = el_grid_data.row;