'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var schedule = require('./schedule.js');

function easeConstant(id, value) {
  if (typeof value !== "function") throw new Error;
  return function() {
    schedule.set(this, id).ease = value;
  };
}

function transition_ease(value) {
  var id = this._id;

  return arguments.length
      ? this.each(easeConstant(id, value))
      : schedule.get(this.node(), id).ease;
}

exports.default = transition_ease;
