drupal-civicrm/sites/all/modules/civicrm/bower_components/phantomjs-polyfill/README.md

27 lines
447 B
Markdown
Raw Normal View History

2018-01-14 15:10:16 +02:00
# Function.prototype.bind polyfill for PhantomJS
This is a polyfill for function.prototype.bind which is missing from [PhantomJS](http://phantomjs.org/).
## 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',
...
]
...