Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
36 lines
860 B
JavaScript
Executable file
36 lines
860 B
JavaScript
Executable file
/**
|
|
* Setup the sliders for previewing the tones.
|
|
* @module VolumeManager
|
|
*/
|
|
define(function(require) {
|
|
'use strict';
|
|
|
|
var SliderHandler = require('panels/sound/slider_handler');
|
|
|
|
var VolumeManager = function() {
|
|
this._elements = null;
|
|
};
|
|
|
|
VolumeManager.prototype = {
|
|
/**
|
|
* initialization
|
|
*
|
|
* @access public
|
|
* @memberOf VolumeManager.prototype
|
|
*/
|
|
init: function vm_init(elements) {
|
|
this._elements = elements;
|
|
|
|
var contentHandler = SliderHandler();
|
|
contentHandler.init(this._elements.media, 'content');
|
|
var notification = SliderHandler();
|
|
notification.init(this._elements.notification, 'notification');
|
|
var alarm = SliderHandler();
|
|
alarm.init(this._elements.alarm, 'alarm');
|
|
}
|
|
};
|
|
|
|
return function ctor_volumeManager() {
|
|
return new VolumeManager();
|
|
};
|
|
});
|