Skip to content

Instantly share code, notes, and snippets.

@kuon
Created November 25, 2010 14:53
Show Gist options
  • Save kuon/715493 to your computer and use it in GitHub Desktop.
Save kuon/715493 to your computer and use it in GitHub Desktop.
clients:function() {
var bl = this.get('broadcastLocation');
if(!bl) return null;
var surfaces = bl.getPath('screenLayout.surfaces');
var clients = [];
surfaces.forEach(function(surface) {
console.log(surface.toString());
//console.log(surface.get('client'));
clients.pushObject(surface.get('client'));
});
console.log(clients);
return clients;
}.property('broadcastLocation').cacheable(),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment