aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2015-01-05 14:47:33 -0800
committerChris Rebert <[email protected]>2015-01-05 14:47:33 -0800
commit34f88e94fcc75d212a0076124c8d550bb9f7095d (patch)
treed2f85c4deb400c3c60d9615f2f557ba8019ca079
parentf6a837cbf1eb24429a4356ef95d7a52e6da35b43 (diff)
downloadbootstrap-34f88e94fcc75d212a0076124c8d550bb9f7095d.tar.xz
bootstrap-34f88e94fcc75d212a0076124c8d550bb9f7095d.zip
window.Document doesn't exist in IE8
-rw-r--r--js/tooltip.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/tooltip.js b/js/tooltip.js
index b47c010f3..5830c4af1 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!');
}