Browse Source

remove(event bus)

Ryan Chandler 4 years ago
parent
commit
060c1b5bbe
7 changed files with 0 additions and 23 deletions
  1. 0 0
      dist/spruce.js
  2. 0 0
      dist/spruce.js.map
  3. 0 0
      dist/spruce.module.js
  4. 0 0
      dist/spruce.module.js.map
  5. 0 0
      dist/spruce.umd.js
  6. 0 0
      dist/spruce.umd.js.map
  7. 0 23
      src/index.js

File diff suppressed because it is too large
+ 0 - 0
dist/spruce.js


File diff suppressed because it is too large
+ 0 - 0
dist/spruce.js.map


File diff suppressed because it is too large
+ 0 - 0
dist/spruce.module.js


File diff suppressed because it is too large
+ 0 - 0
dist/spruce.module.js.map


File diff suppressed because it is too large
+ 0 - 0
dist/spruce.umd.js


File diff suppressed because it is too large
+ 0 - 0
dist/spruce.umd.js.map


+ 0 - 23
src/index.js

@@ -1,10 +1,7 @@
 import { domReady } from './utils'
 import { createObservable } from './observable'
-import EventBus from './bus'
 
 const Spruce = {
-    events: EventBus,
-
     stores: {},
 
     subscribers: [],
@@ -65,26 +62,6 @@ const Spruce = {
         this.subscribers.filter(el => !! el.__x).forEach(el => {
             el.__x.updateElements(el)
         })
-    },
-
-    on(name, callback) {
-        return this.events.on(name, callback)
-    },
-
-    once(name, callback) {
-        return this.events.once(name, callback)
-    },
-
-    off(name, callback) {
-        this.events.off(name, callback)
-    },
-
-    emit(name, data = {}) {
-        this.events.emit(name, { ...data, store: this.stores })
-    },
-
-    watch(dotNotation, callback) {
-        this.events.watch(dotNotation, callback)
     }
 }
 

Some files were not shown because too many files changed in this diff