diff options
| author | Chris Rebert <[email protected]> | 2015-01-05 14:47:33 -0800 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2015-01-05 14:47:33 -0800 |
| commit | 34f88e94fcc75d212a0076124c8d550bb9f7095d (patch) | |
| tree | d2f85c4deb400c3c60d9615f2f557ba8019ca079 /js/tooltip.js | |
| parent | f6a837cbf1eb24429a4356ef95d7a52e6da35b43 (diff) | |
| download | bootstrap-34f88e94fcc75d212a0076124c8d550bb9f7095d.tar.xz bootstrap-34f88e94fcc75d212a0076124c8d550bb9f7095d.zip | |
window.Document doesn't exist in IE8
Diffstat (limited to 'js/tooltip.js')
| -rw-r--r-- | js/tooltip.js | 2 |
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!'); } |
