phantomjs-polyfill
Polyfill for Function.prototype.bind
Last updated 4 years ago by tom-james-watson .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install phantomjs-polyfill 
SYNC missed versions from official npm registry.

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',
  ...
]
...

Current Tags

  • 0.0.2                                ...           latest (4 years ago)

2 Versions

  • 0.0.2                                ...           4 years ago
  • 0.0.1                                ...           5 years ago

Copyright 2014 - 2016 © taobao.org |