From 34f88e94fcc75d212a0076124c8d550bb9f7095d Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Mon, 5 Jan 2015 14:47:33 -0800 Subject: [PATCH] window.Document doesn't exist in IE8 --- js/tooltip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/tooltip.js b/js/tooltip.js index b47c010f37..5830c4af19 100644 --- a/js/tooltip.js +++ b/js/tooltip.js @@ -52,7 +52,7 @@ this.options = this.getOptions(options) this.$viewport = this.options.viewport && $(this.options.viewport.selector || this.options.viewport) - if (this.$element[0] instanceof window.Document && !this.options.selector) { + if (this.$element[0] instanceof document.constructor && !this.options.selector) { throw new Error('`selector` option must be specified when initializing ' + this.type + ' on the window.document object!'); }