Skip to content

Commit 033082a

Browse files
Use newer phantom polyfill for PhantomJS 1.x
angular/angular.js#13794 The 0.0.1 polyfill for PhantomJS no longer worked so I'm replacing it. We should consider upgrading to PhantomJS 2.x, though.
1 parent 25ddaf0 commit 033082a

File tree

5 files changed

+25
-287
lines changed

5 files changed

+25
-287
lines changed

frontend/app/angular-modules.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ declare const I18n: op.I18n;
3030

3131
// global
3232
export const opUiComponentsModule = angular.module('openproject.uiComponents',
33-
['ui.select', 'ui.router', 'ngSanitize', 'openproject.workPackages.services'])
33+
['ui.select', 'ui.router', 'openproject.workPackages.services'])
3434
.run(['$rootScope', function ($rootScope) {
3535
$rootScope.I18n = I18n;
3636
}]);

frontend/app/global.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
// NOTE: currently needed for PhantomJS to support Webpack's style-loader.
3434
// See: https://github.com/webpack/style-loader/issues/31
35-
require('polyfill-function-prototype-bind');
35+
require('phantomjs-polyfill');
3636

3737
require('jquery');
3838
require('jquery-migrate/jquery-migrate');

frontend/bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
},
3535
"devDependencies": {
3636
"mocha": "~1.14.0",
37-
"angular-mocks": "~1.5.5",
37+
"angular-mocks": "~1.5.8",
3838
"chai": "~1.9.0",
3939
"jquery-mockjax": "~1.5.3"
4040
},

0 commit comments

Comments
 (0)