It's a black magic function called when `mode` is changed. See [Changed watchers](http://www.polymer-project.org/docs/polymer/polymer.html#change-watchers).