Glossary: Software Design Patterns in JavaScript
Decorator
Also written: decorators
A wrapper with the same interface as the object it wraps that adds a little behavior and passes the call on. LoggedCarrier logs each quote, and decorators can be stacked.