diff --git a/CHANGELOG.md b/CHANGELOG.md index 46ea7e36..39f3c4f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## v 0.7.2 (2017/12/07) +* [FIX] - fix for ie11 - fix #157 + ## v 0.7.1 (2017/11/27) * [FIX] - use html container if passed in #217 - fix #216 diff --git a/package.json b/package.json index 410362a6..e67f48ad 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ngx-infinite-scroll", - "version": "0.7.1", + "version": "0.7.2", "description": "An infinite scroll directive for Angular compatible with AoT compilation and Tree shaking", "main": "./bundles/ngx-infinite-scroll.umd.js", "module": "./modules/ngx-infinite-scroll.es5.js", diff --git a/src/services/ngx-ins-utils.ts b/src/services/ngx-ins-utils.ts index 901466b6..4a0dd0c0 100644 --- a/src/services/ngx-ins-utils.ts +++ b/src/services/ngx-ins-utils.ts @@ -7,7 +7,7 @@ export function resolveContainerElement( defaultElement, fromRoot: boolean ): any { - const hasWindow = window && !!window.document; + const hasWindow = window && !!window.document && window.document.documentElement; let container = hasWindow && scrollWindow ? window : defaultElement; if (selector) { const containerIsString = diff --git a/tsconfig-build.json b/tsconfig-build.json index 90972e6c..401dfc6e 100644 --- a/tsconfig-build.json +++ b/tsconfig-build.json @@ -7,14 +7,19 @@ "moduleResolution": "node", "outDir": "dist", "rootDir": ".", - /* inlineSourceMap: true for development */ + // "inlineSourceMap": true, "sourceMap": true, "inlineSources": true, "target": "es2015", "skipLibCheck": true, - "lib": ["es2015", "dom"] + "lib": [ + "es2015", + "dom" + ] }, - "files": ["public_api.ts"], + "files": [ + "public_api.ts" + ], "angularCompilerOptions": { "skipTemplateCodegen": true, "annotateForClosureCompiler": true, @@ -22,4 +27,4 @@ "flatModuleOutFile": "ngx-infinite-scroll.js", "flatModuleId": "ngx-infinite-scroll" } -} +} \ No newline at end of file