From e487d72944d635383118c8818ee37db63ae31189 Mon Sep 17 00:00:00 2001 From: Oren Farhi Date: Thu, 7 Dec 2017 21:12:15 +0200 Subject: [PATCH] updated to version 0.7.2 --- CHANGELOG.md | 3 +++ package.json | 2 +- src/services/ngx-ins-utils.ts | 2 +- tsconfig-build.json | 13 +++++++++---- 4 files changed, 14 insertions(+), 6 deletions(-) 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