Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Thanks @tal. See http://stackoverflow.com/q/30667421/315935. It is
modification of [the
fix](858349a)
created for [the issue](#77)
  • Loading branch information
OlegKi committed Jun 5, 2015
1 parent 0160864 commit da165af
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 41 deletions.
4 changes: 2 additions & 2 deletions js/grid.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@
},
isHTMLElement: function (elem) {
// see http://stackoverflow.com/a/384380/315935
return typeof HTMLElement === "object" ?
return (typeof HTMLElement === "object" || typeof HTMLElement === "function") ?
elem instanceof HTMLElement : //DOM2
elem != null && typeof elem === "object" && elem.nodeType === 1 && typeof elem.nodeName === "string";
},
Expand Down Expand Up @@ -1027,7 +1027,7 @@
if (tr instanceof $ || tr.length > 0) {
tr = tr[0]; // unwrap jQuery object to DOM element
}
if (!(typeof HTMLTableRowElement === "object" && tr instanceof HTMLTableRowElement) || tr.cells == null) { // the line will be failed in IE7
if (!((typeof HTMLTableRowElement === "object" || typeof HTMLTableRowElement === "function") && tr instanceof HTMLTableRowElement) || tr.cells == null) { // the line will be failed in IE7
return $(); // return empty jQuery object
}
$td = $(tr.cells[iCol]);
Expand Down

0 comments on commit da165af

Please sign in to comment.