Error when running under phantomJS
jlallement opened this issue · comments
Jérôme LALLEMENT commented
When running under phantomJS, sightglass throw an exception at line 88 :
this.set(true, token, current, this.update.bind(this))
phantom log this message :
this.update.bind is undefined
Pier-Luc Gendreau commented
This is because Phantom < 2 uses an old build of WebKit. Simply inject es5-shim into Phantom or include it on your page.
Russell Osborne commented
Can confirm that this can be resolved with es5-shim.
# Gemfile
source 'https://rails-assets.org' do
gem 'rails-assets-es5-shim'
end
# application.js
# es5-shim must be required prior to sightglass
//= require es5-shim
//= require sightglass
Think this issue can be closed.