group.js revision 666fb1af175d6536aa882340e6249b6733bf6bf2
/*global Y */
var ButtonGroup = function (config) {
this.addAttrs({
/* The array of buttons contained in this group */
buttons : {
value:[],
}
}, this);
}
},
/* An array of buttons that have 'selected' = true state */
selection : {
value : []
},
type : {
value : 'push'
}
}, config);
};
/* Rethink this
ButtonGroup.prototype.addButton = function(button){
var buttons, type;
buttons = this.get('buttons');
buttons.push(button);
this.set('buttons', buttons);
};
*/
e.preventDefault();
}
else {
}
}
}
};
this._syncSelection();
};
var buttons, selections;
// Split apart the selected from the non-selected buttons
});
// TODO: do something with selections['rejects']?
};
}
}, this);
};
Y.ButtonGroup = ButtonGroup;