google/web-starter-kit — pull request #581 by jasonmayes (2014-12-22 18:32:11+00:00)
Title: Upgraded all components to use new JS Design Pattern

Hey guys! Just completed upgrading all WSK components to use the new JS design pattern proposed (see: https://github.com/jasonmayes/wsk-component-design-pattern ). This new design pattern ensures code consistency between components, handles upgrading of all DOM elements upon page load, and enables a super easy way to upgrade any DOM element to any component class you have imported AFTER DOM load (eg programatically via JavaScript) for things that may be added later in time. It also prevents double (or more) upgrading of any element whilst allowing any given element to be upgraded by 1 or more component class instances (to cater for things like WSK Button which is an instance of Button AND Ripple). Happy Christmas! :-) Jason.