kai-jacobsen/kontentblocks

View on GitHub
js/src/shared/ModuleStatusBar/status/Settings/controls/ControlView.js

Summary

Maintainability
A
0 mins
Test Coverage
module.exports = Backbone.View.extend({
  className: 'kbms-field-wrap',
  initialize: function (options) {
    this.bindId = options.bindId;
  },
  events: {
    'change input': 'propagateChange'
  },
  propagateChange: function (event) {
    var overrides = this.model.get('overrides');
    overrides[this.bindId] = this.getOverrideValue(event)
    this.model.set('overrides', overrides);
  },
  getOverrideValue: function (event) {
    return null;
  }
});