var RadioButtonView = IPython.WidgetView.extend({ // Called when view is rendered. render : function(){ this.$el .html('') .addClass(this.model.comm.comm_id); this.update(); }, // Handles: Backend -> Frontend Sync // Frontent -> Frontend Sync update : function(){ // Add missing items to the DOM. var items = this.model.get('values'); for (var index in items) { var item_query = ' :input[value="' + items[index] + '"]'; if (this.$el.find(item_query).length == 0) { var $label = $('