Revealing Prototype Pattern


Techniques, Strategies and Patterns for Structuring JavaScript Code–Revealing Prototype Pattern – Dan Wahlin’s WebLog

If you like the features offered by the Revealing Module Pattern but want to take advantage of JavaScript’s prototype functionality and the benefits it offers, the Revealing Prototype Pattern may be what you need. It offers the benefits of the Revealing Module Pattern but also provides a way to share function implementations across object instances through prototyping. The pattern is a combination of the Prototype Pattern and Revealing Module Pattern.

Related Posts