liferay / liferay-js-toolkit

GNU Lesser General Public License v3.0
52 stars 41 forks source link

fix: #604 put module definition in a block scope #605

Closed izaera closed 4 years ago

izaera commented 4 years ago

This is to avoid the variable declarations on top of the module definition be mixed with module's ones because of hoisting.

See the #604 issue for a more detailed explanation of this commit.

izaera commented 4 years ago

Going to merge this as it has already been discussed in the associated issue.