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:
parent
f6a837cbf1
commit
34f88e94fc
@ -52,7 +52,7 @@
|
|||||||
this.options = this.getOptions(options)
|
this.options = this.getOptions(options)
|
||||||
this.$viewport = this.options.viewport && $(this.options.viewport.selector || this.options.viewport)
|
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!');
|
throw new Error('`selector` option must be specified when initializing ' + this.type + ' on the window.document object!');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user