Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var BoundOneWay = function (upstream, transform) {
if (typeof transform !== "function") {
transform = function (value){return value;};
}
return function (key, value) {
return arguments.length > 1 ? value : transform(this.get(upstream));
}.property(upstream);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.