Skip to content

Instantly share code, notes, and snippets.

@jonsmock
Created May 24, 2012 21:43
Show Gist options
  • Select an option

  • Save jonsmock/2784413 to your computer and use it in GitHub Desktop.

Select an option

Save jonsmock/2784413 to your computer and use it in GitHub Desktop.
Trying to use a transform binding instead of a computed property
App.ticketsController = Em.ArrayController.create({
content: Em.A();
});
App.backlogController = Em.ArrayController.create({
contentBinding: Em.Binding.transform(function(value, binding) {
return value.filter(function(item, index, enumerable) {
return (item.get('assigned') == undefined);
});
}).from("App.ticketsController.content")
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment