Browse Source

Fix `TypeError: Argument 1 of Node.compareDocumentPosition is not an object`.

pull/498/head
XhmikosR 11 years ago
parent
commit
58db851f8c
  1. 2
      docs/assets/js/docs.min.js
  2. 4
      docs/assets/js/fingerblast.js

2
docs/assets/js/docs.min.js vendored

File diff suppressed because one or more lines are too long

4
docs/assets/js/fingerblast.js

@ -35,6 +35,10 @@
var index; var index;
var descendant; var descendant;
if (!element) {
return;
}
if ('compareDocumentPosition' in ancestor) { if ('compareDocumentPosition' in ancestor) {
return !!(ancestor.compareDocumentPosition(element) & 16); return !!(ancestor.compareDocumentPosition(element) & 16);
} else if ('contains' in ancestor) { } else if ('contains' in ancestor) {

Loading…
Cancel
Save