Skip to content

Commit

Permalink
Fixing event handler names in code sample in readme.md
Browse files Browse the repository at this point in the history
This pull request fixes a code sample in the readme.md file. The previous code had incorrect event handler names (onCreateAnnotation, onUpdateAnnotation, and onDeleteAnnotation were all set to onCreateAnnotation). This update corrects the event handler names to their respective functions. Now, the code functions as intended.

### Changes Made
- Fixed event handler names in the code snippet.
- Replaced "onCreateAnnotation" with "onUpdateAnnotation" and "onDeleteAnnotation" at the appropriate locations.
  • Loading branch information
bizouarn authored Sep 5, 2023
1 parent e6aea8b commit c1974c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ window.onload = function() {
config={config}
annotations={annotations}
onCreateAnnotation={onCreateAnnotation}
onUpdateAnnotation={onCreateAnnotation}
onDeleteAnnotation={onCreateAnnotation} />,
onUpdateAnnotation={onUpdateAnnotation}
onDeleteAnnotation={onDeleteAnnotation} />,
document.getElementById('app')
);

Expand Down

0 comments on commit c1974c4

Please sign in to comment.