B2G/gaia/apps/costcontrol/js/config/config_manager.js
// Function in charge of dispatch the events to the observers
Function in charge of dispatch the events to the observers
Function in charge of dispatch the events to the observers
function callCallbacks(evt) {
    debug('Option', evt.detail.name, 'has changed!');
    var callbackCollection = callbacks[evt.detail.name] || [];
    for (var i = 0, callback; callback = callbackCollection[i]; i++) {
      callback(evt.detail.value, evt.detail.oldValue, evt.detail.name,
               evt.detail.settings);
    }
  }
function callCallbacks ( evt ) { debug ( 'Option' , evt . detail . name , 'has changed!' ) ; var callbackCollection = callbacks [ evt . detail . name ] || [ ] ; for ( var i = 0 , callback ; callback = callbackCollection [ i ] ; i ++ ) { callback ( evt . detail . value , evt . detail . oldValue , evt . detail . name , evt . detail . settings ) ; } }
Function in charge of dispatch the events to the observers
Function in charge of dispatch the events to the observers