0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-29 21:52:22 +01:00

window.Document doesn't exist in IE8

This commit is contained in:
Chris Rebert 2015-01-05 14:47:33 -08:00
parent f6a837cbf1
commit 34f88e94fc

View File

@ -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!');
}