ochrons / scalajs-spa-tutorial

Tutorial for creating a simple Single Page Application in ScalaJS
Apache License 2.0
672 stars 230 forks source link

"Zoom" vs "reader" function #34

Closed mb720 closed 8 years ago

mb720 commented 8 years ago

Thanks a ton for your great tutorial!

I spotted a little inconsistency regarding the name of the function used to specify what to read from the model. In the tutorial it's called reader function, for example here:

Both methods take a reader function that extracts the part of the model we are interested in.

But in ReactConnector#wrap it's called zoomFunc.

Thanks again for your immensely useful tutorial!

Best, Matthias

ochrons commented 8 years ago

Yeah, the names can be used interchangeably in this case. It's called zoomFunc because it's used in as a parameter for the zoom function :)