FCF 2.0 development in progress...
> > > > > >
[News] [Packages API] [Downloads] [Donate to the project] [Contacts]

"update_before" event of base class fcf.EventEmitter (class fcf.Configuration)

Event: update_before

Package: fcf-framework-core

Available from version: 2.0.2

Called when the configuration is updated, before changes are made

Event arguments
{objects, configuration} a_event
- The event contains the following fields
  • object object - Added object with configuration parameters

  • fcf.Configuration configuration - Self pointer

Example: Application

let configuration = new fcf.Configuration(); configuration.on("update_after", (a_event)=>{ console.log(a_event.object); }); configuration.append({number: "1"});

Output:

{ number: '1' }