fairmont-reactive
Advanced tools
Comparing version 1.0.0-beta-36 to 1.0.0-beta-37
// Generated by CoffeeScript 1.10.0 | ||
(function() { | ||
var Method, _when, apply, binary, combine, compose, curry, events, flow, identity, isArray, isDefined, isEmpty, isFunction, isFunctionList, isIterable, isIterator, isProducer, isPromise, isReactor, isReagent, isSource, isType, iterator, next, pipe, producer, promise, property, pull, reactor, ref, ref1, ref2, ref3, reject, repeat, resolve, stream, | ||
var Method, _pull, _when, apply, binary, combine, compose, curry, events, flow, identity, isArray, isDefined, isEmpty, isFunction, isFunctionList, isIterable, isIterator, isProducer, isPromise, isReactor, isReagent, isSource, isType, iterator, next, pipe, producer, promise, property, pull, reactor, ref, ref1, ref2, ref3, reject, repeat, resolve, stream, | ||
slice = [].slice; | ||
@@ -50,2 +50,24 @@ | ||
_pull = function(arg) { | ||
var done, value; | ||
done = arg.done, value = arg.value; | ||
if (done) { | ||
return _when({ | ||
done: done | ||
}); | ||
} else if (value.then != null) { | ||
return value.then(function(value) { | ||
return { | ||
done: done, | ||
value: value | ||
}; | ||
}); | ||
} else { | ||
return { | ||
done: done, | ||
value: value | ||
}; | ||
} | ||
}; | ||
pull = Method.create(); | ||
@@ -59,16 +81,3 @@ | ||
return reactor(function() { | ||
var done, ref4, value; | ||
ref4 = next(i), done = ref4.done, value = ref4.value; | ||
if (done) { | ||
return _when({ | ||
done: done | ||
}); | ||
} else { | ||
return value.then(function(value) { | ||
return { | ||
done: done, | ||
value: value | ||
}; | ||
}); | ||
} | ||
return _pull(next(i)); | ||
}); | ||
@@ -79,18 +88,3 @@ }); | ||
return reactor(function() { | ||
return i().then(function(arg) { | ||
var done, value; | ||
done = arg.done, value = arg.value; | ||
if (done) { | ||
return _when({ | ||
done: done | ||
}); | ||
} else { | ||
return value.then(function(value) { | ||
return { | ||
done: done, | ||
value: value | ||
}; | ||
}); | ||
} | ||
}); | ||
return (next(i)).then(_pull); | ||
}); | ||
@@ -97,0 +91,0 @@ }); |
{ | ||
"name": "fairmont-reactive", | ||
"version": "1.0.0-beta-36", | ||
"version": "1.0.0-beta-37", | ||
"description": "Functional reactive programming in JavaScript and CoffeeScript.", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
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
44482
1409