Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 640 Bytes

middleware.md

File metadata and controls

34 lines (21 loc) · 640 Bytes

SYSTEM/middleware

Table of contents


Properties

.catcher

Function that is called when the first argument passed .next is a instance of Error


Methods

use(fn)

  • cb {Function} Function that should be called with the parameters passed to .trigger(...)

start(...args)

  • ...args {Any} that are passed to the callback registerd on .use(cb)

catch(fn)

  • fn {Function}