Created
November 25, 2010 14:53
-
-
Save kuon/715493 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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