JavaScript Revealing Prototype Pattern - Error Prone Point

The pattern has a unsafe context switching.
It can make you pain.

Look at JSFiddle
Revealing Prototype Pattern error prone point

Think twice before use it.
Revealing Module Pattern is cool (and FFE).

Comments

Popular posts from this blog

Convention over Git = CoG

Glossary of synchronization of remote Git repositories

Ctrl+Shift+Right arrow doesn't work in Visual Studio 2019