mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-22 07:20:23 +00:00
window.Document doesn't exist in IE8
This commit is contained in:
parent
f6a837cbf1
commit
34f88e94fc
1 changed files with 1 additions and 1 deletions
|
|
@ -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!');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue