Skip to content

chriscressman/phantomjs-polyfill-rails

Repository files navigation

phantomjs_polyfill-rails

Function.prototype.bind polyfill for PhantomJS packaged for the Rails asset pipeline.

Usage

Add the gem to your Gemfile:

gem 'phantomjs_polyfill-rails'

Load the library within an asset manifest such as application.js:

//= require phantomjs_polyfill-rails/bind-polyfill

If you've included the gem in your Gemfile, Bundler will generally take care of requireing the necessary files, but if for some reason you need to manually require the gem:

require 'phantomjs_polyfill/rails'

Versioning

The Function.prototype.bind polyfill for PhantomJS project has no versioned releases. The following table indicates which version of the JS file (indicated by commit ID) is included with each version of the gem.

Gem Version Commit ID
1.0.0 3a0d40c