Sha256: 11e6e8dde3a52eeebb9c85877dd0999deb35215ab5cd338dc7d5e2016dc7d99d

Contents?: true

Size: 423 Bytes

Versions: 4

Compression:

Stored size: 423 Bytes

Contents

define(function () {
  return function () {
    var isCount = false;
    var me;

    d3.selectAll("input").on("change", function () {
      var newCount = this.value === 'count';

      if (newCount !== isCount) {
        isCount = newCount;
        me.onChange(isCount);
      }
    });

    return me = {
      isCount: function () {
        return isCount;
      },

      onChange: function () {
      }
    }
  }
});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rspectacles-0.5.0 lib/rspectacles/app/public/js/form.js
rspectacles-0.4.2 lib/rspectacles/app/public/js/form.js
rspectacles-0.4.1 lib/rspectacles/app/public/js/form.js
rspectacles-0.4.0 lib/rspectacles/app/public/js/form.js