]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
window.Document doesn't exist in IE8 15496/head
authorChris Rebert <code@rebertia.com>
Mon, 5 Jan 2015 22:47:33 +0000 (14:47 -0800)
committerChris Rebert <code@rebertia.com>
Mon, 5 Jan 2015 22:47:33 +0000 (14:47 -0800)
js/tooltip.js

index b47c010f37c824ba4dd70bb2f548dfda3988b5d0..5830c4af1900a67b936a1c3d246ac01cbdc44c0a 100644 (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!');
     }