Demo: dojo.extend
View source. The result is in the console.
Swing