Excerpt: Pro JavaScript Design Patterns
Posted on Jun 2, 2008 06:23:48 PM
The Adapter Pattern
The adapter pattern allows you to adapt existing interfaces to classes that would otherwise be incompatible. Objects that use this pattern can also be called wrappers, since they wrap another object in a new interface. There are many situations where creating adapters can benefit both the programmers and the interface designers. Often when designing classes, some interfaces can’t be used with existing Read the rest of this entry »
Tags: Design, Excerpt, JavaScript, Patterns