drupal-civicrm/sites/all/modules/civicrm/bower_components/phantomjs-polyfill
2018-01-14 13:10:16 +00:00
..
.bower.json First commit 2018-01-14 13:10:16 +00:00
bind-polyfill.js First commit 2018-01-14 13:10:16 +00:00
package.json First commit 2018-01-14 13:10:16 +00:00
README.md First commit 2018-01-14 13:10:16 +00:00

Function.prototype.bind polyfill for PhantomJS

This is a polyfill for function.prototype.bind which is missing from PhantomJS.

Installation

npm install --save-dev phantomjs-polyfill

Usage

require('phantomjs-polyfill')

Usage with Karma

Include the polyfill directly in the files list of your karma.conf

...
files: [
  './node_modules/phantomjs-polyfill/bind-polyfill.js',
  ...
]
...