chore: use $ instead of jQuery inside gridster

This commit is contained in:
vieron
2013-11-14 16:36:44 +01:00
parent b6ec35252d
commit 381a881501
2 changed files with 4 additions and 4 deletions

View File

@@ -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{

View File

@@ -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;