DoneJS StealJS jQuery ++ FuncUnit DocumentJS
3.0.0
2.3.27

 

  • Github
  • Twitter
  • Chat
  • Forum
  • Guides
  • Core
  • Ecosystem
  • Infrastructure
    • can-construct
    • can-control
    • can-event
    • can-event/async/async
      • async
      • dispatch
      • flush
      • queue
      • sync
    • can-event/batch/batch
    • can-observation
    • can-simple-map
    • can-util
    • can-view-callbacks
    • can-view-live
    • can-view-model
    • can-view-nodelist
    • can-view-parser
    • can-view-scope
    • can-view-target
  • Legacy
  • Bitovi
    • Bitovi.com
    • Blog
    • Consulting
    • Training
    • Open Source
  • Chat
  • Forum
  • Star
  • Follow @canjs
  • CanJS
  • /
  • Infrastructure
  • /
  • can-event/async/async
  • /
  • dispatch
  • / On this page
    • dispatch

      function

      Dispatch events asynchronously.

      • source

      asych.dispatch.call(target, event, [args])

      Dispatches event on target in a task queue scheduled to run immediately after the current event loop.

      If async is called, this will replace the default dispatch.

      Parameters

      1. target {*}:

        The object to dispatch the event on.

      2. event {String|Object}:

        The event to dispatch.

      3. args {Array}:

        Additional arguments to pass to event handlers

      Returns

      {Object}:

      event The resulting event object

      CanJS is part of DoneJS. Created and maintained by the core DoneJS team and Bitovi. Currently 3.0.0.