can-kefir.js
function getCurrentValue(stream, key) {
	if (stream._currentEvent && stream._currentEvent.type === key) {
		return stream._currentEvent.value;
	} else {
		var names = keyNames[key];
		if (!names) {
			return stream[key];
		}
		var VALUE,
			valueHandler = function(value) {
				VALUE = value;
			};
		stream[names.on](valueHandler);
		stream[names.off](valueHandler);
		return VALUE;
	}
}
function getCurrentValue(stream, key) {
	if (stream._currentEvent && stream._currentEvent.type === key) {
		return stream._currentEvent.value;
	} else {
		var names = keyNames[key];
		if (!names) {
			return stream[key];
		}
		var VALUE,
			valueHandler = function(value) {
				VALUE = value;
			};
		stream[names.on](valueHandler);
		stream[names.off](valueHandler);
		return VALUE;
	}
}
function getCurrentValue ( stream , key ) { if ( stream . _currentEvent && stream . _currentEvent . type === key ) { return stream . _currentEvent . value ; } else { var names = keyNames [ key ] ; if ( ! names ) { return stream [ key ] ; } var VALUE , valueHandler = function ( value ) { VALUE = value ; } ; stream [ names . on ] ( valueHandler ) ; stream [ names . off ] ( valueHandler ) ; return VALUE ; } }
get the current value from a stream
get the current value from a stream