All examples By author By category About

fabiovalse

Backbone D3View II

This experiment extends the previuos one by handling model changes. By clicking on one of the three SVG, the model hue attribute is randomically changed. Since the views (SVGs) are listening to model changes (through the listenTo function), the hue of all of them is automatically changed by Backbone.