group.js revision db92b84e128cab8bd1aecfa3c38718a339eb501f
var ButtonGroup = function (config) {
var ATTRS = {
selection : {
value : [],
getter: function(){
var selected = [];
}
});
return selected;
}
},
type: {
value: 'radio',
}
}
};
}
});
}
}, this);
}
};
};
}
});
return selected;
};
selected = this.getSelectedButtons();
});
return values;
};
}
//button.on('selectedChange', this._onButtonSelectedChange, this);
};
// This is only fired if the group type is a radio
e.preventDefault();
return false;
}
else {
/* Nothing? */
}
};
};
var fireChange, buttons;
fireChange = false;
fireChange = true;
}
else {
/* Nothing */
}
});
}
fireChange = true;
}
if (fireChange) {
this.fire('selectionChange');
}
};
Y.ButtonGroup = ButtonGroup;