datavis-tech / reactive-model

A library for reactive dataflow programming.
MIT License
61 stars 6 forks source link

throw an error if some property in configuration is not in exposedProperties #35

Open curran opened 8 years ago

curran commented 8 years ago

Part of https://github.com/datavis-tech/reactive-model/issues/33

Sketch:

    // Throw an error if some property in configuration
    // is not in exposedProperties.
    Object.keys(configuration).forEach(function (property){
      if(!isExposed(property)){
        throw new Error("Attempting to set a property that has not" +
          " been added as a exposed property in model(configuration)");
      }              
    });