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

jQuery Deferred Object method chain or a Syntactic Sugar

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