Skip to content

Instantly share code, notes, and snippets.

@pzuraq
Created April 12, 2013 01:50
Show Gist options
  • Save pzuraq/5368678 to your computer and use it in GitHub Desktop.
Save pzuraq/5368678 to your computer and use it in GitHub Desktop.
unselectedOptions: function() {
var options = this.content.get('vehicleOptions');
var filterOptions = this.get('VehicleOptions').filter(function(option) {
if(options.contains(option)) {
return false;
}
return true;
});
return filterOptions.sort(function(a,b){
return a.get('name') - b.get('name');
});
}.property('content.vehicleOptions.lastObject').cacheable(),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment