Skip to content

Conversation

lazmeister
Copy link
Contributor

@lazmeister lazmeister commented Feb 3, 2022

This is literally my first PR on an open source project in a long time. Hope this is the required information!

-- Changes --

  • Updated comments with grammar/translations to English
  • Updated variable _isAutostarting to _isAutoStarting
  • Updated event emitter autostarted to autoStarted
  • Added an argument null on line 611 this.camerasNotFound.next(null)
  • Updated version to 3.4.1

@lazmeister
Copy link
Contributor Author

I did start with updating RXJS but reversed it as I do not have enough knowledge yet to update 659, sorry!

@lazmeister
Copy link
Contributor Author

Sorry I think I clicked merge too early (it's been a long time since last PR)

* Emits when and if the scanner is autoStarted.
*/
@Output()
autostarted: EventEmitter<void>;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a breaking change (public API).. Even though it looks better with the uppercase "S" I suggest to revert it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no problem, I'll push a change and revert the variable. Should have thought about that. Thanks!

@werthdavid
Copy link
Member

Much appreciated, thanks!

@lazmeister
Copy link
Contributor Author

Let me know if this is good. Pushed up the changes and reverted the variable

*/
@Output()
autostarting: EventEmitter<boolean>;
autoStarting: EventEmitter<boolean>;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I think that is the Problem with the API. this should be "autostarting" again.

set isAutostarting(state: boolean) {
this._isAutostarting = state;
this.autostarting.next(state);
set isAutoStarting(state: boolean) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aalso this and the getter below

@lazmeister
Copy link
Contributor Author

okay that should do it for putting them all back to the originals. Sorry about that!

}

if (this.isAutostarting) {
if (this.iAutostarting) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is an "s" missing.. "isAu.." and not "iAu"..
Sorry for all the inconvenience 😅

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ahhhhh! Sorry, I should have stashed my changes and started fresh. Okay, pushed up another.

@werthdavid werthdavid merged commit 226a30b into zxing-js:master Feb 6, 2022
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