Fix variable name error on developer api documentation#5173
Fix variable name error on developer api documentation#5173simonbrunel merged 1 commit intochartjs:masterfrom
Conversation
|
@jonquach I'm not sure your observation is correct. The function in getElementAtEvent: function(e) {
return Interaction.modes.single(this, e);
}
|
|
While I tried using it I got an error on this, see this codepen I made. You can see in the console: Uncaught ReferenceError: firstPoint is not definedThe object return in Maybe I'm using it wrong, do you have any insight on this ? |
|
@jonquach I think I explained myself wrong. IMO it would be better to rename the variable |
fc00199 to
8b5b6fd
Compare
|
@jcopperfield Oh I see! Sorry I misunderstood. I agree, it seems more consistent, made the changes |
Small changes on the developer
api.mddocumentation for the method.getElementAtEvent(e), in the code snippet to get the item that was clicked on.I believe the variable called here should be
item, notfirstPoint.See here