Skip to content

set btn outside of if block #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 21, 2014
Merged

Conversation

gareth-instil
Copy link

Hi

First off, thanks for this lib. It saved me the effort :)

I was trying to use the lib to clip to an existing element on my page but could not get it to work. When I checked the source, I saw that the btn variable was only ever set in the if(!attrs.id) block and so the zeroclipboard client was not being created in the case where I was trying to clip to an element with an id.

lisposter added a commit that referenced this pull request Jun 21, 2014
set btn outside of if block
@lisposter lisposter merged commit 2280ba4 into lisposter:master Jun 21, 2014
@lisposter
Copy link
Owner

Thank you very much. And this is the first pr I have received. :) I am very happy that these code could help you. :)

@gareth-instil
Copy link
Author

My first pr also :)

@gareth-instil
Copy link
Author

Any chance that you could tag a release with this change in it? Thanks.

@lisposter
Copy link
Owner

Ok. done for now. Sorry for that cus I have went to JSConf China in recent days.

@gareth-instil
Copy link
Author

No problem Leigh. Thanks.

On 24 June 2014 02:53, Leigh [email protected] wrote:

Ok. done for now. Sorry for that cus I have went to JSConf China in recent
days.


Reply to this email directly or view it on GitHub
#1 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants