fix jshit warnings

This commit is contained in:
Pavel Reznikov 2016-02-19 14:31:24 -08:00
commit 47218bd7a6
4 changed files with 12 additions and 12 deletions

10
dist/gridstack.js vendored
View file

@ -641,7 +641,7 @@
}
this._stylesId = 'gridstack-style-' + (Math.random() * 100000).toFixed();
this._styles = Utils.createStylesheet(this._stylesId);
if (this._styles != null) {
if (this._styles !== null) {
this._styles._max = 0;
}
};
@ -1008,7 +1008,7 @@
el.each(function(index, el) {
el = $(el);
var node = el.data('_gridstack_node');
if (typeof node == 'undefined' || node == null) {
if (typeof node === 'undefined' || node === null) {
return;
}
@ -1025,7 +1025,7 @@
el.each(function(index, el) {
el = $(el);
var node = el.data('_gridstack_node');
if (typeof node == 'undefined' || node == null) {
if (typeof node === 'undefined' || node === null) {
return;
}
@ -1042,7 +1042,7 @@
el.each(function(index, el) {
el = $(el);
var node = el.data('_gridstack_node');
if (typeof node == 'undefined' || node == null) {
if (typeof node === 'undefined' || node === null) {
return;
}
@ -1059,7 +1059,7 @@
el.each(function(index, el) {
el = $(el);
var node = el.data('_gridstack_node');
if (typeof node == 'undefined' || node == null) {
if (typeof node === 'undefined' || node === null) {
return;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -641,7 +641,7 @@
}
this._stylesId = 'gridstack-style-' + (Math.random() * 100000).toFixed();
this._styles = Utils.createStylesheet(this._stylesId);
if (this._styles != null) {
if (this._styles !== null) {
this._styles._max = 0;
}
};
@ -1008,7 +1008,7 @@
el.each(function(index, el) {
el = $(el);
var node = el.data('_gridstack_node');
if (typeof node == 'undefined' || node == null) {
if (typeof node === 'undefined' || node === null) {
return;
}
@ -1025,7 +1025,7 @@
el.each(function(index, el) {
el = $(el);
var node = el.data('_gridstack_node');
if (typeof node == 'undefined' || node == null) {
if (typeof node === 'undefined' || node === null) {
return;
}
@ -1042,7 +1042,7 @@
el.each(function(index, el) {
el = $(el);
var node = el.data('_gridstack_node');
if (typeof node == 'undefined' || node == null) {
if (typeof node === 'undefined' || node === null) {
return;
}
@ -1059,7 +1059,7 @@
el.each(function(index, el) {
el = $(el);
var node = el.data('_gridstack_node');
if (typeof node == 'undefined' || node == null) {
if (typeof node === 'undefined' || node === null) {
return;
}