Skip to content

Commit

Permalink
updated: irrelevant change
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaGuarini committed Jun 16, 2019
1 parent 1a245bd commit 7be31e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
8 changes: 2 additions & 6 deletions dist/es6.observable.js
Expand Up @@ -42,7 +42,6 @@ function one(callbacks, el) {
}
}


function trigger(callbacks, el) {
return (event, ...args) => {
const fns = callbacks.get(event)
Expand All @@ -58,14 +57,11 @@ function trigger(callbacks, el) {
}

const observable = function(el) { // eslint-disable-line
el = el || {}

/**
* Private variables
*/
const callbacks = new Map()
const methods = {on, off, one, trigger}

el = el || {}

define(el,
entries(methods).reduce((acc, [key, method]) => {
acc[key] = {
Expand Down
8 changes: 2 additions & 6 deletions dist/observable.js
Expand Up @@ -42,7 +42,6 @@ function one(callbacks, el) {
}
}


function trigger(callbacks, el) {
return (event, ...args) => {
const fns = callbacks.get(event)
Expand All @@ -58,14 +57,11 @@ function trigger(callbacks, el) {
}

const observable = function(el) { // eslint-disable-line
el = el || {}

/**
* Private variables
*/
const callbacks = new Map()
const methods = {on, off, one, trigger}

el = el || {}

define(el,
entries(methods).reduce((acc, [key, method]) => {
acc[key] = {
Expand Down

0 comments on commit 7be31e4

Please sign in to comment.