You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upgraded package to use latest versions of its dependencies and nuked unnecessary ones. This also marks the time at which IE versions 10 and lower will no longer be supported (this is not to say they won't still work, since we are using babel and browserify, but just a warning). More specifically, this major version included the following changes:
- Changed to latest ES6 syntax - Removed module-js dependency - Removed deprecated element-kit package - Removed old `Form.mapElementsByName()` - Fixed a bug where events on Radios and Checkboxes were not being removed on destroy
* A callback function that fires when one of the checkbox elements are selected
7
6
* @callback Checkboxes~onChange
@@ -31,7 +30,7 @@ require('element-kit');
31
30
* @class Checkboxes
32
31
* @extends FormElement
33
32
*/
34
-
varCheckboxes=FormElementGroup.extend({
33
+
classCheckboxesextendsFormElementGroup{
35
34
36
35
/**
37
36
* Initialization.
@@ -46,9 +45,9 @@ var Checkboxes = FormElementGroup.extend({
46
45
* @param {string} [options.disabledClass] - The css class that will be applied to a checkbox item (UI-version) when it is disabled
47
46
* @param {string|Array} [options.value] - The string matching the name attribute of the checkbox button to have selected initially (or an array of such strings)
48
47
*/
49
-
initialize: function(options){
48
+
constructor(options){
50
49
51
-
this.options=_.extend({
50
+
options=_.extend({
52
51
inputs: [],
53
52
onChange: null,
54
53
containerClass: 'ui-checkbox',
@@ -58,48 +57,49 @@ var Checkboxes = FormElementGroup.extend({
0 commit comments