Skip to content

Commit

Permalink
minor #1035 Fix javascript error - 2 extra closing brackets in _onPre…
Browse files Browse the repository at this point in the history
…Connect (sponno)

This PR was merged into the 2.x branch.

Discussion
----------

Fix javascript error - 2 extra closing brackets in _onPreConnect

Code was not valid due to extra closing brackets.

Removed extra ")", run code and tested.

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| Tickets       | No ticket
| License       | MIT

README
Fixed an error in _onPreConnect – javascript code was not actually valid. It has an extra closing bracket.

Commits
-------

85e0322 Fix javascript error - 2 extra closing brackets in _onPreConnect
  • Loading branch information
weaverryan committed Aug 7, 2023
2 parents b1a46cd + 85e0322 commit 02a533a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Typed/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ Stimulus controller:
console.log(event.detail.options); // Options that will be used to initialize Typed
event.detail.options.onBegin = (typed) => {
console.log("Typed is ready to type cool messages!");
});
};
event.detail.options.onStop = (typed) => {
console.log("OK. Enough is enough.");
});
};
}
_onConnect(event) {
Expand Down

0 comments on commit 02a533a

Please sign in to comment.