How to use the Events function from backbone

Find comprehensive JavaScript backbone.Events code examples handpicked from public code repositorys.

8
9
10
11
12
13
14
15
16
module.exports = class Api {
  constructor(options) {
    if (!options.state) throw 'Must pass options.state, a State'
    if (!options.globalActions) throw 'Must pass options.globalActions, an Object of functions'

    // Inherit from Backbone.Events
    for (const f in Backbone.Events) {
      this[f] = Backbone.Events[f]
    }
fork icon36
star icon269
watch icon21