mirror of https://github.com/sveltejs/svelte
The way the example is currently presented requires that the user have an understanding of how Javascript hoists functions. By moving the function declaration before the function reference, the order of the code becomes more clear to the reader, which I think is valuable here. I think it's more important that this material clearly teach the behavior of Svelte, rather than the nuances of Javascript.pull/5491/head
parent
377c7647ed
commit
39341bbfdf
Loading…
Reference in new issue