Commit 34f88e94 authored by Chris Rebert's avatar Chris Rebert

window.Document doesn't exist in IE8

parent f6a837cb
...@@ -52,7 +52,7 @@ ...@@ -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!');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment