src/plugin/plugin.js
function runHandler(plugin, handler, cancel) {
  return function runHandlerDelegate(data) {
    if (!data) {
      return Promise.resolve();
    }

    return Promise
      .resolve(handler.handler(data, plugin, cancel))
      .then(function(result) {
        return data.configure(result);
      });
  };
}
function runHandler(plugin, handler, cancel) {
  return function runHandlerDelegate(data) {
    if (!data) {
      return Promise.resolve();
    }

    return Promise
      .resolve(handler.handler(data, plugin, cancel))
      .then(function(result) {
        return data.configure(result);
      });
  };
}
function runHandler ( plugin , handler , cancel ) { return function runHandlerDelegate ( data ) { if ( ! data ) { return Promise . resolve ( ) ; } return Promise . resolve ( handler . handler ( data , plugin , cancel ) ) . then ( function ( result ) { return data . configure ( result ) ; } ) ; } ; }
Method that return a function that executes a plugin handler.
Method that return a function that executes a plugin handler .