Comparing version 0.0.6 to 0.0.7
@@ -425,3 +425,3 @@ let are_equal = require('deep-equal'); | ||
} else { | ||
//console.log('t', t); | ||
res = '?'; | ||
@@ -1943,2 +1943,6 @@ | ||
// Could have it automatially add targets. | ||
// For the moment, want to keep this simpler. | ||
// optional assign_target variable. | ||
@@ -1975,8 +1979,5 @@ // don't want to assign a target by default. | ||
} | ||
let be = this._bound_events; | ||
let bgh = this._bound_general_handler; | ||
res = []; | ||
if (bgh) { | ||
@@ -1992,3 +1993,2 @@ for (c = 0, l = bgh.length; c < l; c++) { | ||
// They are handlers that get called. | ||
for (c = 0, l = bei.length; c < l; c++) { | ||
@@ -2007,6 +2007,4 @@ if (bei[c]) res.push(bei[c].apply(target, additional_args)); | ||
// s,? | ||
} | ||
} | ||
return res; | ||
@@ -2048,3 +2046,2 @@ } | ||
return this; | ||
} | ||
@@ -2083,4 +2080,4 @@ | ||
} | ||
return this; | ||
} | ||
'off'() { | ||
@@ -2107,83 +2104,2 @@ // However, need to make use of some document events. | ||
/* | ||
fns.observe = function () { | ||
// observe_multi | ||
// | ||
// Call multiple observer functions. | ||
// process them individually. | ||
let arr = this; | ||
let res = new Evented_Class(); | ||
let c = 0, | ||
l = arr.length; | ||
let proceed = () => { | ||
} | ||
let process = () => { | ||
if (c < l) { | ||
let fn_call = arr[c]; | ||
let caller = fn_call[0]; | ||
let obs_fn = fn_call[1]; | ||
let params = fn_call[2]; | ||
let obs = obs_fn.apply(caller, params); | ||
//fn. | ||
obs.on('next', data => { | ||
res.raise('next', { | ||
'index': c, | ||
'params': params, | ||
'data': data | ||
}) | ||
}); | ||
obs.on('complete', res => { | ||
res.raise('complete', { | ||
'index': c, | ||
'params': params, | ||
'data': res | ||
}) | ||
process(); | ||
}); | ||
obs.on('error', err => { | ||
res.raise('error', { | ||
'index': c, | ||
'params': params, | ||
'error': err | ||
}) | ||
}); | ||
c++; | ||
} else { | ||
proceed(); | ||
} | ||
} | ||
//process(); | ||
} | ||
*/ | ||
var p = Evented_Class.prototype; | ||
@@ -2195,4 +2111,2 @@ p.raise = p.raise_event; | ||
let lang_mini = { | ||
@@ -2212,2 +2126,3 @@ 'each': each, | ||
'is_defined': is_defined, | ||
'def': is_defined, | ||
'stringify': stringify, | ||
@@ -2214,0 +2129,0 @@ 'functional_polymorphism': functional_polymorphism, |
@@ -17,3 +17,3 @@ { | ||
}, | ||
"version": "0.0.6" | ||
} | ||
"version": "0.0.7" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52963
1709