Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
This commit is contained in:
parent
93e3a48004
commit
b38dea0597
25901 changed files with 9982925 additions and 369 deletions
27
gaia/tv_apps/smart-settings/js/settings_group.js
Executable file
27
gaia/tv_apps/smart-settings/js/settings_group.js
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
'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);
|
||||
Loading…
Reference in a new issue