aomran / ember-cli-zero-clipboard

Ember CLI addon for adding a "copy to clipboard" button component
https://www.npmjs.org/package/ember-cli-zero-clipboard
17 stars 12 forks source link

added guard to assert zero clipboard client exists #18

Closed habdelra closed 9 years ago

habdelra commented 9 years ago

Added guard to assert that the client exists. This was blowing up in PhantomJS in Travis otherwise

screen shot 2015-07-11 at 11 39 24 am
aomran commented 9 years ago

why would this happen? the variable client is defined just above this line. Is phantomjs not loading ZeroClipboard properly?

habdelra commented 9 years ago

Yeah, that is what I'm thinking. This issue seems to only occur in PhantomJS