Skip to content

Commit

Permalink
chore: use $ instead of jQuery inside gridster
Browse files Browse the repository at this point in the history
  • Loading branch information
vieron committed Nov 14, 2013
1 parent 2603104 commit 2988e7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/jquery.collision.js
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
6 changes: 3 additions & 3 deletions src/jquery.gridster.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 2988e7d

Please sign in to comment.