Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
27 lines
787 B
JavaScript
Executable file
27 lines
787 B
JavaScript
Executable file
'use strict';
|
|
/* global SettingsList */
|
|
(function(exports) {
|
|
|
|
function SettingsGroup() {
|
|
var self = this;
|
|
this.bindSelf();
|
|
this.on('itemChoosed', function translateItemToGroup(data) {
|
|
self.fire('groupChoosed', data.dom.dataset.group);
|
|
});
|
|
}
|
|
|
|
var proto = SettingsGroup.prototype = new SettingsList();
|
|
|
|
proto.setActive = function sg_setActive(active) {
|
|
// no matter activate or not, we should reselect the dom node.
|
|
this.selectionBorder.select(this.spatialNavigation.getFocusedElement());
|
|
};
|
|
|
|
proto.init = function sg_init(dom, lazyDOMId) {
|
|
this.container = dom;
|
|
SettingsList.prototype.init.apply(this,
|
|
[document.getElementById(lazyDOMId)]);
|
|
};
|
|
|
|
exports.SettingsGroup = SettingsGroup;
|
|
})(window);
|