Skip to content
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

Allow multiple QR code instances #3

Merged
merged 4 commits into from
Jun 3, 2013
Merged

Conversation

davidcl64
Copy link
Contributor

Fixes #2

Previously, private variables were trapped by the outer function
closure that returns the Drawing constructor.

I removed these declarations and scoped them to the object instance.
This has the side affect of making them public. If that is
undesirable, the code can be refactored further to keep these private.

I haven't fully tested all codepaths (table based drawing, android
specific logic), so more regression should probably be done before
merging this in to your codebase.

davidcl64 added 4 commits May 25, 2013 08:19
Fixes davidshimjs#2

Previously, private variables were trapped by the outer function
closure that returns the Drawing constructor.

I removed these declarations and scoped them to the object instance.
This has the side affect of making them public.  If that is
undesirable, the code can be refactored further to keep these private.

I haven't fully tested all codepaths (table based drawing, android
specific logic), so more regression should probably be done before
merging this in to your codebase.
In _safeSetDataURI forgot to save off reference to this so callbacks
could keep a reference to the original this.
Had forgotten to save of reference to this so that callbacks would have
a reference to the original instance.
davidshimjs added a commit that referenced this pull request Jun 3, 2013
@davidshimjs davidshimjs merged commit d2c7871 into davidshimjs:master Jun 3, 2013
davidshimjs pushed a commit that referenced this pull request Jun 3, 2013
wing-kai pushed a commit to shenhudong/qrcodejs that referenced this pull request May 11, 2019
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.

Only lastly created qrcode can be updated when multiple codes are on a page
3 participants