stampit-org / stamp-specification

The Stamp Specification: Composables
434 stars 16 forks source link

Allow late stage stamp metadata editing #113

Closed koresar closed 7 years ago

koresar commented 7 years ago

This fixes an unexpected behavior of late stage stamp editing.

This code executes initializers:

const stamp = compose(Something)
  .compose({ initializers: [function () {
    console.log("I don't want this line executed");
  }]});

delete stamp.compose.initializers; // Don't want!!!

stamp(); // will log to the console

After the PR the initializers will not be executed as expected.