From a511c0fd69058497b325bceea4e82f8db6529f0e Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Fri, 16 Dec 2016 14:25:06 +0000 Subject: [PATCH] fix dialog polyfill usage --- demo-shell-ng2/app/vendor.ts | 2 +- demo-shell-ng2/config/webpack.common.js | 4 ---- .../src/components/activiti-checklist.component.ts | 2 +- .../src/components/activiti-comments.component.ts | 2 +- .../src/components/activiti-people.component.ts | 2 +- 5 files changed, 4 insertions(+), 8 deletions(-) diff --git a/demo-shell-ng2/app/vendor.ts b/demo-shell-ng2/app/vendor.ts index 038e3284c7..00beff23cc 100644 --- a/demo-shell-ng2/app/vendor.ts +++ b/demo-shell-ng2/app/vendor.ts @@ -38,7 +38,7 @@ import 'material-design-icons/iconfont/material-icons.css'; import 'flag-icon-css/css/flag-icon.min.css'; // Polyfill(s) for dialogs -import 'dialog-polyfill/dialog-polyfill'; +require('script!dialog-polyfill/dialog-polyfill'); import 'dialog-polyfill/dialog-polyfill.css'; // app content diff --git a/demo-shell-ng2/config/webpack.common.js b/demo-shell-ng2/config/webpack.common.js index d2d3be3135..2f6e28adb0 100644 --- a/demo-shell-ng2/config/webpack.common.js +++ b/demo-shell-ng2/config/webpack.common.js @@ -106,10 +106,6 @@ module.exports = { plugins: [ - new webpack.ProvidePlugin({ - 'dialogPolyfill': 'dialog-polyfill/dialog-polyfill' - }), - new CopyWebpackPlugin([ { from: 'versions.json' } ]), diff --git a/ng2-components/ng2-activiti-tasklist/src/components/activiti-checklist.component.ts b/ng2-components/ng2-activiti-tasklist/src/components/activiti-checklist.component.ts index cf9e0056d3..6836c12249 100644 --- a/ng2-components/ng2-activiti-tasklist/src/components/activiti-checklist.component.ts +++ b/ng2-components/ng2-activiti-tasklist/src/components/activiti-checklist.component.ts @@ -21,7 +21,7 @@ import { ActivitiTaskListService } from './../services/activiti-tasklist.service import { TaskDetailsModel } from '../models/task-details.model'; import { Observer, Observable } from 'rxjs/Rx'; -let dialogPolyfill: any; +declare let dialogPolyfill: any; @Component({ selector: 'activiti-checklist', diff --git a/ng2-components/ng2-activiti-tasklist/src/components/activiti-comments.component.ts b/ng2-components/ng2-activiti-tasklist/src/components/activiti-comments.component.ts index 38bb5f7f2a..0d0dda5759 100644 --- a/ng2-components/ng2-activiti-tasklist/src/components/activiti-comments.component.ts +++ b/ng2-components/ng2-activiti-tasklist/src/components/activiti-comments.component.ts @@ -21,7 +21,7 @@ import { ActivitiTaskListService } from './../services/activiti-tasklist.service import { Comment } from '../models/comment.model'; import { Observer, Observable } from 'rxjs/Rx'; -let dialogPolyfill: any; +declare let dialogPolyfill: any; @Component({ selector: 'activiti-comments', diff --git a/ng2-components/ng2-activiti-tasklist/src/components/activiti-people.component.ts b/ng2-components/ng2-activiti-tasklist/src/components/activiti-people.component.ts index e4e23e7612..a975e1671d 100644 --- a/ng2-components/ng2-activiti-tasklist/src/components/activiti-people.component.ts +++ b/ng2-components/ng2-activiti-tasklist/src/components/activiti-people.component.ts @@ -21,7 +21,7 @@ import { User } from '../models/user.model'; import { Observer, Observable } from 'rxjs/Rx'; import { ActivitiPeopleService } from '../services/activiti-people.service'; -let dialogPolyfill: any; +declare let dialogPolyfill: any; @Component({ selector: 'activiti-people',